-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for building with HEMTT v1.0+ #1565
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
e06658f
Hemmit Config Compat
PabstMirror 57b87c4
fix
PabstMirror 3d6a89c
Create fn_isdebugconsoleallowed.sqf
PabstMirror 4213ffe
test
PabstMirror b972868
asc:exclude - use forward slashes
PabstMirror f10a937
undo assert changes
PabstMirror aab30f0
Merge branch 'master' into hemmit10test
jonpas 12f0672
Adapt to HEMTT v1
jonpas d72d8ac
Set version in CfgMods.hpp and build in script_version.hpp in HEMTT hook
jonpas 3bc46af
Add missing includes, Fix script_version build set, Update HEMTT config
jonpas e964c35
Reenable ASC
jonpas 57622af
Fix LOG macros
jonpas d2a10fb
JR - Remove private/protected/public/Read defines
jonpas 6736af6
Adapt flexiMenu to HEMTT v1
jonpas 051812b
Set build to date in HEMTT hook
jonpas 1cc0a4c
Merge branch 'master' into hemmit10test
jonpas 88bce47
Fix multi-line config quote issues
jonpas 5dff99b
Keep old hemtt.toml for backward compatibility
PabstMirror 571e197
fix semi-colon usage after #include
PabstMirror 0cb477b
Merge branch 'master' into hemmit10test
PabstMirror afbf9d8
hemtt 1.8 RC2 math update
PabstMirror aa21617
Merge branch 'master' into hemmit10test
PabstMirror 7b3bb3f
Update test_position.sqf
PabstMirror 3e2852b
Create settings.json
PabstMirror f52a33a
update includes for 2.12
PabstMirror File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
let releases = HEMTT_RFS.join("releases"); | ||
|
||
let src = releases.join(HEMTT.project().prefix() + "-" + HEMTT.project().version().to_string() + ".zip"); | ||
let dst = releases.join(HEMTT.project().name() + "_v" + HEMTT.project().version().to_string_short() + ".zip"); | ||
|
||
print("Moving zip to " + dst); | ||
if !src.move(dst) { | ||
fatal("Failed to move " + src + " to " + dst); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
let modcpp = HEMTT_VFS.join("mod.cpp").open_file().read(); | ||
modcpp.replace("0.0.0", HEMTT.project().version().to_string_short()); | ||
HEMTT_VFS.join("mod.cpp").create_file().write(modcpp); | ||
print("mod.cpp version set"); | ||
|
||
let cfgmodshpp = HEMTT_VFS.join("addons").join("main_a3").join("CfgMods.hpp").open_file().read(); | ||
cfgmodshpp.replace("0.0.0", HEMTT.project().version().to_string_short()); | ||
HEMTT_VFS.join("addons").join("main_a3").join("CfgMods.hpp").create_file().write(cfgmodshpp); | ||
print("addons/main_a3/CfgMods.hpp version set"); | ||
|
||
let scriptversion = HEMTT_VFS.join("addons").join("main").join("script_version.hpp").open_file().read(); | ||
let scriptversion_date = date("[year repr:last_two][month][day]"); | ||
scriptversion.replace("000000", scriptversion_date); | ||
HEMTT_VFS.join("addons").join("main").join("script_version.hpp").create_file().write(scriptversion); | ||
print("addons/main/script_version.hpp build set to " + scriptversion_date); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name = "CBA_A3" | ||
prefix = "cba" | ||
author = "CBATeam" | ||
|
||
[files] | ||
include = [ | ||
"mod.cpp", | ||
"README.md", | ||
"LICENSE.md", | ||
"logo_cba_ca.paa", | ||
"meta.cpp", | ||
"userconfig/**", | ||
] | ||
|
||
[version] | ||
git_hash = 0 | ||
|
||
[asc] | ||
enabled = true | ||
exclude = [ | ||
"/initsettings.sqf", | ||
"/initkeybinds.sqf", | ||
"/xeh_prep.sqf", | ||
"/backwards_comp.sqf", | ||
"settings/gui_createcategory.sqf", | ||
"diagnostic/fnc_isdebugconsoleallowed.sqf", | ||
"xeh/fnc_initdisplay.sqf", | ||
"xeh/fnc_startloadingscreen.sqf", | ||
"xeh/fnc_endloadingscreen.sqf", | ||
] | ||
|
||
[hemtt.config] | ||
preset = "Hemtt" | ||
|
||
[hemtt.release] | ||
folder = "CBA_A3" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was the only one used in one place, I removed those defines, should be fine?