From d7cdb29852c60e8d6393d58560196efb97927e5c Mon Sep 17 00:00:00 2001 From: N2614 Date: Thu, 16 Feb 2012 01:06:09 +0000 Subject: [PATCH] =?UTF-8?q?=E3=83=AA=E3=83=AA=E3=83=BC=E3=82=B9=E7=94=A8?= =?UTF-8?q?=E3=83=93=E3=83=AB=E3=83=89=E8=A8=AD=E5=AE=9A=E3=82=92=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_Repair@636 385bec56-5757-e545-9c3a-d8741f4650f1 --- trunk/ConsoleDataMigration/sources/build.sh | 23 ++++++++++++++++++- .../tools/ExportedDataDecrypter/OMakefile | 5 ++-- .../tools/ExportedDataVerifier/OMakefile | 5 ++-- .../sources/tools/FatDataEncrypter/OMakefile | 5 ++-- 4 files changed, 31 insertions(+), 7 deletions(-) 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