Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3f12c45c9d | ||
|
|
2abe39b29c | ||
|
|
f228274ac0 | ||
|
|
b71af1ffb8 |
@@ -0,0 +1,6 @@
|
|||||||
|
version: 2
|
||||||
|
updates:
|
||||||
|
- package-ecosystem: "github-actions"
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: "weekly"
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
name: Dependabot auto-merge
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request_target:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
- main
|
||||||
|
types:
|
||||||
|
- opened
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
pull-requests: write
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
enableAutoMerge:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: github.event.pull_request.user.login == 'dependabot[bot]'
|
||||||
|
steps:
|
||||||
|
- name: Enable auto-merge for Dependabot PRs
|
||||||
|
run: gh pr merge --auto --merge "$PR_URL"
|
||||||
|
env:
|
||||||
|
PR_URL: ${{ github.event.pull_request.html_url }}
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
+17
-12
@@ -5,24 +5,29 @@ projectName = 'TransmitManager'
|
|||||||
|
|
||||||
project = builder.LibraryProject(projectName)
|
project = builder.LibraryProject(projectName)
|
||||||
project.sources += [
|
project.sources += [
|
||||||
os.path.join(Extension.ext_root, 'src', 'extension.cpp'),
|
os.path.join(Extension.ext_root, 'src', 'extension.cpp'),
|
||||||
os.path.join(Extension.sm_root, 'public', 'smsdk_ext.cpp')
|
os.path.join(Extension.sm_root, 'public', 'smsdk_ext.cpp')
|
||||||
]
|
]
|
||||||
|
|
||||||
for sdk_name in Extension.sdks:
|
for sdk_name in Extension.sdks:
|
||||||
sdk = Extension.sdks[sdk_name]
|
sdk = Extension.sdks[sdk_name]
|
||||||
if sdk['name'] in ['mock']:
|
if sdk['name'] in ['mock']:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
for cxx in builder.targets:
|
for cxx in builder.targets:
|
||||||
if not cxx.target.arch in sdk['platforms'][cxx.target.platform]:
|
if not cxx.target.arch in sdk['platforms'][cxx.target.platform]:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
binary = Extension.HL2ExtConfig(project, builder, cxx, projectName + '.ext.' + sdk['extension'], sdk)
|
binary = Extension.HL2ExtConfig(project, builder, cxx, projectName + '.ext.' + sdk['extension'], sdk)
|
||||||
|
|
||||||
Extension.AddCDetour(binary)
|
Extension.AddCDetour(binary)
|
||||||
|
|
||||||
if cxx.target.platform in ['windows']:
|
# Silence fatal errors on unrecognized Clang warning flags from CDetour
|
||||||
binary.compiler.postlink += [ 'legacy_stdio_definitions.lib' ]
|
if cxx.family in ['gcc', 'clang']:
|
||||||
|
binary.compiler.cflags += ['-Wno-unknown-warning-option']
|
||||||
|
binary.compiler.cxxflags += ['-Wno-unknown-warning-option']
|
||||||
|
|
||||||
|
if cxx.target.platform in ['windows']:
|
||||||
|
binary.compiler.postlink += [ 'legacy_stdio_definitions.lib' ]
|
||||||
|
|
||||||
Extension.extensions += builder.Add(project)
|
Extension.extensions += builder.Add(project)
|
||||||
|
|||||||
Reference in New Issue
Block a user