diff --git a/trunk/ConsoleDataMigration/sources/build.sh b/trunk/ConsoleDataMigration/sources/build.sh index cf269e5..1dbdc17 100755 --- a/trunk/ConsoleDataMigration/sources/build.sh +++ b/trunk/ConsoleDataMigration/sources/build.sh @@ -1,7 +1,28 @@ #!/usr/bin/env bash +# フラグ判定 +for arg in $@ +do + if [ "$arg" = 'RELEASE' ]; then + releaseBuild=true + fi +done + +if [ $releaseBuild ] ; then + BUILD_TYPE=release + OPTION="PROD_BUILD=true" +else + BUILD_TYPE=development +fi + +#################### 通常ビルド #################### # ツールのビルド -omake BUILD=development FILTER=CTR-TS.*fast -j8 +omake BUILD=$BUILD_TYPE FILTER=CTR-TS.*fast -j8 $OPTION + +#Releaseはツールのみ +if [ $releaseBuild ] ; then + exit +fi # CTR自動テストのビルド cd tests diff --git a/trunk/ConsoleDataMigration/sources/tools/ExportedDataDecrypter/OMakefile b/trunk/ConsoleDataMigration/sources/tools/ExportedDataDecrypter/OMakefile index e2d5536..165f6d0 100644 --- a/trunk/ConsoleDataMigration/sources/tools/ExportedDataDecrypter/OMakefile +++ b/trunk/ConsoleDataMigration/sources/tools/ExportedDataDecrypter/OMakefile @@ -39,7 +39,8 @@ SOURCES[] = ../../common/configLoader.cpp ../../common/VersionDetect.cpp -CTR_BANNER_SPEC = $(TARGET_PROGRAM).bsf +include $(ROOT)/common/BuildSwitch.om +CTR_BANNER_SPEC = $(TARGET_NAME).bsf ROMFS_ROOT = ../../common/romfiles @@ -56,7 +57,7 @@ LIBS += libnn_cfg \ INSTALL_SDK_TOOL = true -ROM_SPEC_FILE = $(TARGET_PROGRAM).rsf +ROM_SPEC_FILE = $(TARGET_NAME).rsf DESCRIPTOR = $(HORIZON_ROOT)/resources/specfiles/private/RepairTool.desc include $(ROOT_OMAKE)/modulerules diff --git a/trunk/ConsoleDataMigration/sources/tools/ExportedDataVerifier/OMakefile b/trunk/ConsoleDataMigration/sources/tools/ExportedDataVerifier/OMakefile index bd3d669..4361685 100644 --- a/trunk/ConsoleDataMigration/sources/tools/ExportedDataVerifier/OMakefile +++ b/trunk/ConsoleDataMigration/sources/tools/ExportedDataVerifier/OMakefile @@ -39,7 +39,8 @@ SOURCES[] = ../../common/configLoader.cpp ../../common/VersionDetect.cpp -CTR_BANNER_SPEC = $(TARGET_PROGRAM).bsf +include $(ROOT)/common/BuildSwitch.om +CTR_BANNER_SPEC = $(TARGET_NAME).bsf ROMFS_ROOT = ../../common/romfiles @@ -56,7 +57,7 @@ LIBS += libnn_cfg \ INSTALL_SDK_TOOL = true -ROM_SPEC_FILE = $(TARGET_PROGRAM).rsf +ROM_SPEC_FILE = $(TARGET_NAME).rsf DESCRIPTOR = $(HORIZON_ROOT)/resources/specfiles/private/RepairTool.desc include $(ROOT_OMAKE)/modulerules diff --git a/trunk/ConsoleDataMigration/sources/tools/FatDataEncrypter/OMakefile b/trunk/ConsoleDataMigration/sources/tools/FatDataEncrypter/OMakefile index 569542e..11c466a 100644 --- a/trunk/ConsoleDataMigration/sources/tools/FatDataEncrypter/OMakefile +++ b/trunk/ConsoleDataMigration/sources/tools/FatDataEncrypter/OMakefile @@ -39,7 +39,8 @@ SOURCES[] = ../../common/configLoader.cpp ../../common/VersionDetect.cpp -CTR_BANNER_SPEC = $(TARGET_PROGRAM).bsf +include $(ROOT)/common/BuildSwitch.om +CTR_BANNER_SPEC = $(TARGET_NAME).bsf ROMFS_ROOT = ../../common/romfiles @@ -56,7 +57,7 @@ LIBS += libnn_cfg \ INSTALL_SDK_TOOL = true -ROM_SPEC_FILE = $(TARGET_PROGRAM).rsf +ROM_SPEC_FILE = $(TARGET_NAME).rsf DESCRIPTOR = $(HORIZON_ROOT)/resources/specfiles/private/RepairTool.desc include $(ROOT_OMAKE)/modulerules