Skip to content

Commit

Permalink
Update cmake tools.
Browse files Browse the repository at this point in the history
  • Loading branch information
kovacsv committed Dec 23, 2023
1 parent b34bec2 commit 3533870
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:

- name: Run build script
run: |
python Tools/BuildAddOn.py --configFile config.json --acVersion ${{ matrix.ac-version }} --release --package
python Tools/BuildAddOn.py --configFile config.json --acVersion ${{ matrix.ac-version }} --package
- name: Create Release
if: startsWith(github.ref, 'refs/tags/')
Expand Down
13 changes: 8 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@ set (AC_API_DEVKIT_DIR ${API_DEVKIT_DIR} CACHE PATH "API DevKit directory.")
set (AC_ADDON_NAME "DotbimAddOn" CACHE STRING "Add-On name.")
set (AC_ADDON_LANGUAGE "INT" CACHE STRING "Add-On language code.")

project (${AC_ADDON_NAME})
if (NOT DEFINED AC_VERSION)
message (FATAL_ERROR "AC_VERSION is not set!")
endif ()

message (STATUS "Archicad Version: ${AC_VERSION}")
SetGlobalCompilerDefinitions (${AC_VERSION})

DetectACVersion (${AC_API_DEVKIT_DIR} ACVersion)
message (STATUS "Archicad Version: ${ACVersion}")
project (${AC_ADDON_NAME})

set (AddOnSourcesFolder Source)
set (AddOnResourcesFolder .)
SetGlobalCompilerDefinitions ()
GenerateAddOnProject (${ACVersion} ${AC_API_DEVKIT_DIR} ${AC_ADDON_NAME} ${AddOnSourcesFolder} ${AddOnResourcesFolder} ${AC_ADDON_LANGUAGE})
GenerateAddOnProject (${AC_VERSION} ${AC_API_DEVKIT_DIR} ${AC_ADDON_NAME} ${AddOnSourcesFolder} ${AddOnResourcesFolder} ${AC_ADDON_LANGUAGE})
2 changes: 1 addition & 1 deletion Tools
13 changes: 1 addition & 12 deletions config.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
{
"addOnName": "DotbimAddOn",
"devKitLinks": {
"WIN": {
"27": "https://github.com/GRAPHISOFT/archicad-api-devkit/releases/download/27.3001/API.Development.Kit.WIN.27.3001.zip",
"26": "https://github.com/GRAPHISOFT/archicad-api-devkit/releases/download/26.3000/API.Development.Kit.WIN.26.3000.zip",
"25": "https://github.com/GRAPHISOFT/archicad-api-devkit/releases/download/25.3002/API.Development.Kit.WIN.25.3002.zip"
},
"MAC": {
"27": "https://github.com/GRAPHISOFT/archicad-api-devkit/releases/download/27.3001/API.Development.Kit.MAC.27.3001.zip",
"26": "https://github.com/GRAPHISOFT/archicad-api-devkit/releases/download/26.3000/API.Development.Kit.MAC.26.3000.zip",
"25": "https://github.com/GRAPHISOFT/archicad-api-devkit/releases/download/25.3002/API.Development.Kit.MAC.25.3002.zip"
}
},
"defaultLanguage": "INT",
"languages": [
"INT"
]
Expand Down

0 comments on commit 3533870

Please sign in to comment.