Skip to content

Instantly share code, notes, and snippets.

@dimitre
Created January 31, 2023 00:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dimitre/4339fda7bef0d7ff373c2da2f5d2c25f to your computer and use it in GitHub Desktop.
Save dimitre/4339fda7bef0d7ff373c2da2f5d2c25f to your computer and use it in GitHub Desktop.
build openframeworks example with Chalet
{
"name": "open-frameworks",
"version": "1.0.0",
"abstracts:*": {
"language": "C++",
"language[toolchain:apple-llvm]": "Objective-C++",
"settings:Cxx": {
"cppStandard": "c++17",
"warningsPreset": "minimal",
"runtimeTypeInformation": true,
"threads": true,
"exceptions": true,
"defines[:debug]": [
"DEBUG"
],
"compileOptions[toolchain:apple-llvm]": [
"-fpascal-strings",
"-fobjc-arc"
],
"includeDirs": [
"libs/openFrameworks/*",
"libs/openFrameworks"
],
"includeDirs[:macos]": [
"libs/glew/include",
"libs/tess2/include",
"libs/glm/include",
"libs/utf8/include",
"libs/glfw/include",
"libs/pugixml/include",
"libs/uriparser/include",
"libs/fmod/include",
"libs/cairo/include/cairo",
"libs/FreeImage/include",
"libs/curl/include",
"libs/freetype/include/freetype2",
"libs/json/include",
"libs/rtAudio/include"
],
"libDirs[:macos]": "libs/fmod/lib/osx",
"links[:macos]": "fmod",
"staticLinks[:macos]": [
"libs/boost/lib/osx/boost_system.a",
"libs/boost/lib/osx/boost_filesystem.a",
"libs/cairo/lib/osx/png.a",
"libs/cairo/lib/osx/pixman-1.a",
"libs/cairo/lib/osx/cairo.a",
"libs/cairo/lib/osx/cairo-script-interpreter.a",
"libs/curl/lib/osx/curl.a",
"libs/FreeImage/lib/osx/freeimage.a",
"libs/freetype/lib/osx/freetype.a",
"libs/glew/lib/osx/glew.a",
"libs/glfw/lib/osx/glfw3.a",
"libs/pugixml/lib/osx/pugixml.a",
"libs/rtAudio/lib/osx/rtaudio.a",
"libs/tess2/lib/osx/tess2.a",
"libs/uriparser/lib/osx/uriparser.a"
],
"macosFrameworks": [
"Accelerate",
"AGL",
"ApplicationServices",
"AVFoundation",
"Cocoa",
"CoreAudio",
"CoreFoundation",
"CoreMedia",
"CoreServices",
"CoreVideo",
"IOKit",
"OpenGL",
"QuartzCore",
"Security"
]
}
},
"targets": {
"open-frameworks": {
"kind": "staticLibrary",
"files": {
"include": [
"libs/openFrameworks/{3d,communication,events,gl,graphics,math,sound,types,utils,video}/*.cpp",
"libs/openFrameworks/app/ofBaseApp.cpp",
"libs/openFrameworks/app/ofMainLoop.cpp",
"libs/openFrameworks/app/ofAppRunner.cpp",
"libs/openFrameworks/app/ofAppGLFWWindow.cpp"
],
"include[toolchain:apple-llvm]": "libs/openFrameworks/**.{mm,m}",
"exclude[:macos]": [
"libs/openFrameworks/video/ofDirectShowPlayer.cpp",
"libs/openFrameworks/video/ofGstVideoGrabber.cpp",
"libs/openFrameworks/video/ofGstVideoPlayer.cpp",
"libs/openFrameworks/video/ofGstUtils.cpp"
]
}
},
"ofBoxExample": {
"kind": "executable",
"settings:Cxx": {
// "includeDirs": "examples/3d/ofBoxExample/src",
"includeDirs": "examples/3d/cameraParentingExample/src",
"staticLinks": "open-frameworks"
},
"files": "examples/3d/cameraParentingExample/src/*.cpp",
"copyFilesOnRun[:macos]": "examples/3d/cameraParentingExample/bin/data"
},
"download-libs": {
"kind": "script",
"condition": "[:runTarget]",
"file[:macos]": "scripts/osx/download_libs.sh"
}
},
"distribution": {
"ofBoxExample": {
"kind": "bundle",
"buildTargets": "*",
"exclude": [
"data/.gitkeep"
],
"macosBundle": {
"type": "app",
"icon": "libs/openFrameworksCompiled/project/osx/of.icns",
"infoPropertyList": {
"CFBundleDevelopmentRegion": "en-US",
"CFBundleDisplayName": "${name}",
"CFBundleExecutable": "${mainExecutable}",
"CFBundleIconFile": "${icon}",
"CFBundleIdentifier": "com.developer.application",
"CFBundleInfoDictionaryVersion": "6.0",
"CFBundleName": "${bundleName}",
"CFBundlePackageType": "APPL",
"CFBundleShortVersionString": "1.0.0",
"CFBundleVersion": "1.0.0",
"CFBundleSignature": "????",
"LSMinimumSystemVersion": "10.8",
"NSHighResolutionCapable": true
}
}
},
"ofBoxExample.dmg": {
"kind": "macosDiskImage",
"pathbarVisible": false,
"textSize": 12,
"iconSize": 80,
"size": {
"width": 512,
"height": 342
},
"positions": {
"ofBoxExample": {
"x": 120,
"y": 188
},
"Applications": {
"x": 392,
"y": 188
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment