-
-
Save incanus/1ac9408ce885b644d4b4 to your computer and use it in GitHub Desktop.
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
{ | |
'includes': [ | |
'../common.gypi', | |
'../config.gypi' | |
], | |
'targets': [ | |
{ | |
"target_name": "iosapp", | |
"product_name": "llmr", | |
"type": "executable", | |
"sources": [ | |
"./main.m", | |
"./MBXAppDelegate.m" | |
"./MBXSettings.mm", | |
"./MBXViewController.mm" | |
], | |
'product_extension': 'app', | |
'link_settings': { | |
'libraries': [ | |
'$(SDKROOT)/System/Library/Frameworks/UIKit.framework', | |
'$(SDKROOT)/System/Library/Frameworks/OpenGLES.framework', | |
'$(SDKROOT)/System/Library/Frameworks/GLKit.framework', | |
], | |
}, | |
'xcode_settings': { | |
'ARCHS': [ "armv7", "armv7s", "arm64" ], | |
'SUPPORTED_PLATFORMS': [ 'iphoneos', 'iphonesimulator' ], | |
'OTHER_LDFLAGS': [ | |
'-stdlib=libc++' | |
], | |
'SDKROOT': 'iphoneos', | |
'INFOPLIST_FILE': 'Info.plist', | |
'CLANG_CXX_LIBRARY': 'libc++', | |
'CLANG_CXX_LANGUAGE_STANDARD':'c++11', | |
'IPHONEOS_DEPLOYMENT_TARGET':'5.0', | |
'TARGETED_DEVICE_FAMILY': '1,2', | |
'CODE_SIGN_IDENTITY': 'iPhone Developer', | |
'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0' | |
}, | |
"dependencies": [ | |
"../llmr.gyp:llmr-ios" | |
] | |
} | |
] | |
} |
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
-include config.mk | |
BUILDTYPE ?= Release | |
PYTHON ?= python | |
V ?= 1 | |
all: out/Makefile llmr | |
config.gypi: configure | |
$(PYTHON) ./configure | |
llmr: config.gypi out/Makefile llmr.gyp | |
$(MAKE) -C out BUILDTYPE=Release V=$(V) llmr-osx | |
# build OS X app with pure make | |
app: config.gypi src macosx/llmr-app.gyp | |
deps/run_gyp macosx/llmr-app.gyp -Goutput_dir=./out/ --depth=. --generator-output=./build/macosx-make -f make | |
make -C build/macosx-make | |
open build/macosx-make/out/Release/llmr.app | |
xcode: config.gypi llmr.gyp config.gypi | |
deps/run_gyp llmr.gyp -Goutput_dir=./out/ --depth=. --generator-output=./ -f xcode | |
# build OS X with xcodebuild | |
xapp: xcode config.gypi src macosx/llmr-app.gyp | |
deps/run_gyp macosx/llmr-app.gyp -Goutput_dir=./out/ --depth=. --generator-output=./ -f xcode | |
xcodebuild -project ./macosx/llmr-app.xcodeproj | |
open macosx/build/Release/llmr.app | |
# build iOS app with xcodebuild | |
iapp: xcode config.gypi src ios/llmr-app.gyp | |
deps/run_gyp ios/llmr-app.gyp -Goutput_dir=./out/ --depth=. --generator-output=./ -f xcode | |
xcodebuild -project ./ios/llmr-app.xcodeproj | |
# launch app with ios-sim | |
out/Makefile: common.gypi llmr.gyp config.gypi | |
clean: | |
-rm -rf out | |
-rm -rf build | |
-rm -rf macosx/build | |
-rm -rf ios/build | |
distclean: | |
-rm -f config.gypi | |
-rm -f config.mk | |
-rm -rf llmr.xcodeproj | |
test: all | |
echo test | |
.PHONY: test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment