Skip to content

Commit 929e92a

Browse files
committed
Fix MAC build issues
1 parent 02d2a93 commit 929e92a

File tree

3 files changed

+37
-4
lines changed

3 files changed

+37
-4
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
/build
1+
/build
2+
.DS_Store

CMakeLists.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ set_property (GLOBAL PROPERTY USE_FOLDERS ON)
6262
get_filename_component (CMAKE_CURRENT_FOLDER_NAME "${CMAKE_CURRENT_LIST_DIR}" NAME)
6363
set (CMAKE_SUPPRESS_REGENERATION 1)
6464
set (CMAKE_CONFIGURATION_TYPES Debug;Release;RelWithDebInfo)
65-
set (CMAKE_OSX_DEPLOYMENT_TARGET ___MACOSX_DEPLOYMENT_TARGET___)
65+
set (CMAKE_OSX_DEPLOYMENT_TARGET "10.15")
66+
set (CMAKE_OSX_ARCHITECTURES "x86_64")
67+
set (CMAKE_XCODE_ATTRIBUTE_ONLY_ACTIVE_ARCH "NO")
6668
set (AC_API_DEVKIT_DIR "${CMAKE_CURRENT_LIST_DIR}/../.." CACHE PATH "API DevKit directory.")
6769
set (AC_ADDON_NAME "${CMAKE_CURRENT_FOLDER_NAME}" CACHE STRING "Add-On name.")
6870
set (AC_ADDON_LANGUAGE "INT" CACHE STRING "Add-On language code.")
@@ -137,7 +139,7 @@ else ()
137139
DEPENDS ${AddOnResourceFiles} ${AddOnImageFiles}
138140
COMMENT "Compiling resources..."
139141
COMMAND ${CMAKE_COMMAND} -E make_directory "${ResourceObjectsDir}"
140-
COMMAND python "${APIDevKitToolsFolderAbsolute}/CompileResources.py" "${AC_ADDON_LANGUAGE}" "${AC_API_DEVKIT_DIR}" "${AddOnSourcesFolderAbsolute}" "${AddOnResourcesFolderAbsolute}" "${ResourceObjectsDir}" "${CMAKE_BINARY_DIR}/$<CONFIG>/${AC_ADDON_NAME}.bundle/Contents/Resources"
142+
COMMAND python "${AddOnResourcesFolderAbsolute}/CompileResources.py" "${AC_ADDON_LANGUAGE}" "${AC_API_DEVKIT_DIR}" "${AddOnSourcesFolderAbsolute}" "${AddOnResourcesFolderAbsolute}" "${ResourceObjectsDir}" "${CMAKE_BINARY_DIR}/$<CONFIG>/${AC_ADDON_NAME}.bundle/Contents/Resources"
141143
COMMAND ${CMAKE_COMMAND} -E copy "${AC_API_DEVKIT_DIR}/Support/Inc/PkgInfo" "${CMAKE_BINARY_DIR}/$<CONFIG>/${AC_ADDON_NAME}.bundle/Contents/PkgInfo"
142144
COMMAND ${CMAKE_COMMAND} -E touch "${ResourceObjectsDir}/AddOnResources.stamp"
143145
)
@@ -216,5 +218,5 @@ if (WIN32)
216218
AddGSModulesToLinkLibraries (AddOn ${gsModule})
217219
endforeach ()
218220
else ()
219-
AddGSModulesToLinkLibraries (AddOn)
221+
AddGSModulesToLinkLibraries (AddOn "")
220222
endif ()

RFIX.mac/Info.plist

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleInfoDictionaryVersion</key>
6+
<string>6.0</string>
7+
<key>CFBundleIdentifier</key>
8+
<string>com.tlorantfy.archicad-additional-json-commands</string>
9+
<key>CFBundleName</key>
10+
<string>archicad-additional-json-commands</string>
11+
<key>CFBundleGetInfoString</key>
12+
<string>This Add-On implements additional JSON/Python commands.</string>
13+
<key>CFBundleShortVersionString</key>
14+
<string>1.0.0</string>
15+
<key>CFBundlePackageType</key>
16+
<string>.APX</string>
17+
<key>CFBundleSignature</key>
18+
<string>GSAP</string>
19+
<key>CFBundleVersion</key>
20+
<string>1.0.0</string>
21+
<key>CFBundleDevelopmentRegion</key>
22+
<string>English</string>
23+
<key>CFBundleIconFile</key>
24+
<string>ArchiCADPlugin.icns</string>
25+
<key>LSMinimumSystemVersion</key>
26+
<string>10.11.0</string>
27+
<key>LSRequiresCarbon</key>
28+
<true/>
29+
</dict>
30+
</plist>

0 commit comments

Comments
 (0)