Skip to content

Instantly share code, notes, and snippets.

@takashi1975
Last active August 29, 2015 14:06
Show Gist options
  • Save takashi1975/9a2c16957624eac4d54a to your computer and use it in GitHub Desktop.
Save takashi1975/9a2c16957624eac4d54a to your computer and use it in GitHub Desktop.
Cocos2d-x v3.x 環境設定 .bash_profile
#################################################################
# ANDROID SDK
export ANDROID_SDK_ROOT=/Applications/android-sdk-macosx
export PATH=$PATH:$ANDROID_SDK_ROOT
export PATH=$PATH:${ANDROID_SDK_ROOT}/platform-tools
#################################################################
# ANDROID NDK
# export NDK_ROOT=/Applications/android-ndk-r9d
export NDK_ROOT=/Applications/android-ndk-r10d
export PATH=$PATH:$NDK_ROOT
#################################################################
# ccache
export NDK_CCACHE=/usr/local/bin/ccache
# ~ ccache - option ~
# ファイルの更新チェック方法 (ccache -o compiler_check=content)
export CCACHE_COMPILERCHECK=content
# キャッシュの保持上限サイズ (ccache -o max_size=10G)
export CCACHE_MAXSIZE=10G
#################################################################
# ANT (for Cocos2d-X V3.x)
export ANT_ROOT=/Applications/apache-ant-1.9.4/bin
#################################################################
# Cocos2d-X V3.x
export COCOS_CONSOLE_ROOT=/Applications/cocos2d/cocos2d-x-3.3/tools/cocos2d-console/bin
export PATH=$PATH:$COCOS_CONSOLE_ROOT
@takashi1975
Copy link
Author

ccache ... ndkのコンパイル高速化
http://qiita.com/TNaruto/items/cfbc52e3bb8046bc9337

cocos2d-x(Android NDK)ビルドを高速化する方法とオススメ設定
http://matsukaz.hatenablog.com/entry/2015/02/04/094741

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment