Skip to content

Commit

Permalink
[scripts] be less verbose, and don't use bitcode for simulator libs
Browse files Browse the repository at this point in the history
  • Loading branch information
hgy29 committed Dec 15, 2016
1 parent a67faa9 commit 50f2a91
Show file tree
Hide file tree
Showing 14 changed files with 19 additions and 6 deletions.
1 change: 1 addition & 0 deletions desktop/desktop.pro
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
QT += core gui opengl network multimedia
CONFIG += silent

win32{
RC_FILE = other_files/desktop.rc
Expand Down
1 change: 1 addition & 0 deletions fontcreator/fontcreator.pro
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#-------------------------------------------------

QT += core gui
CONFIG += silent

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

Expand Down
1 change: 1 addition & 0 deletions gdrbridge/gdrbridge.pro
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ QT -= gui
TARGET = gdrbridge
CONFIG += console
CONFIG -= app_bundle
CONFIG += silent

TEMPLATE = app

Expand Down
2 changes: 2 additions & 0 deletions gdrdeamon/gdrdeamon.pro
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ QT -= gui
TARGET = gdrdeamon
#CONFIG += console
CONFIG -= app_bundle
CONFIG += silent


TEMPLATE = app

Expand Down
1 change: 1 addition & 0 deletions gdrexport/gdrexport.pro
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ QT += core network xml
TARGET = gdrexport
CONFIG += console
CONFIG -= app_bundle
CONFIG += silent

TEMPLATE = app

Expand Down
1 change: 1 addition & 0 deletions libgid/libgid_qt5.pro
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ QT += opengl network

TARGET = gid
TEMPLATE = lib
CONFIG += silent

DEFINES += GIDEROS_LIBRARY

Expand Down
1 change: 1 addition & 0 deletions libgvfs/libgvfs.pro
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ QT +=

TARGET = gvfs
TEMPLATE = lib
CONFIG += silent

DEFINES += GIDEROS_LIBRARY

Expand Down
1 change: 1 addition & 0 deletions libpystring/libpystring.pro
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ QT -= gui

TARGET = pystring
TEMPLATE = lib
CONFIG += silent

DEFINES += PYSTRING_LIBRARY

Expand Down
1 change: 1 addition & 0 deletions lua/lua.pro
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ QT -= core gui

TARGET = lua
TEMPLATE = lib
CONFIG += silent

win32 {
DEFINES += LUA_BUILD_AS_DLL
Expand Down
1 change: 1 addition & 0 deletions player/player_qt5.pro
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
QT += core gui opengl network multimedia
CONFIG += silent

INCLUDEPATH += \
"../libgid/external/zlib-1.2.8"\
Expand Down
8 changes: 4 additions & 4 deletions scripts/GidWinRT.mk
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ WINRT_PROJECT=$(1)/$(2)/$(2).$(3)/$(2).$(3).vcxproj
#$(call WINRT_MANIFEST basepath name target)
WINRT_MANIFEST=$(1)/$(2)/$(2).$(3)/$(2).$(3).Package.appxmanifest
#$(call WINRT_BUILD_WIN basepath name)
WINRT_BUILD_WIN=$(MSBUILD) $(call WINRT_PROJECT,$(1),$(2),Windows) //p:Configuration=Release //p:Platform=Win32
WINRT_BUILD_WIN=$(MSBUILD) $(call WINRT_PROJECT,$(1),$(2),Windows) //p:Configuration=Release //p:Platform=Win32 //v:m
#$(call WINRT_BUILD_WP basepath name)
WINRT_BUILD_WP=$(MSBUILD) $(call WINRT_PROJECT,$(1),$(2),WindowsPhone) //p:Configuration=Release //p:Platform=ARM
WINRT_BUILD_WP=$(MSBUILD) $(call WINRT_PROJECT,$(1),$(2),WindowsPhone) //p:Configuration=Release //p:Platform=ARM //v:m


WINRT_APPX_GIDVERSION_LIST:=$(subst ., ,$(GIDEROS_VERSION)) 0 0 0 0
Expand Down Expand Up @@ -84,12 +84,12 @@ winrt.player: winrt.template
rm -rf /c/winrt_player
cp winrt_example/giderosgame/giderosgame.WindowsPhone/Package.appxmanifest winrt_example/giderosgame/giderosgame.WindowsPhone/Package.appxmanifest.bak
sed -e 's/Version="[^"]*"/Version="$(WINRT_APPX_GIDVERSION)"/' winrt_example/giderosgame/giderosgame.WindowsPhone/Package.appxmanifest.bak >winrt_example/giderosgame/giderosgame.WindowsPhone/Package.appxmanifest
$(MSBUILD) winrt_example/giderosgame/giderosgame.WindowsPhone/giderosgame.WindowsPhone.vcxproj //t:Publish //p:Configuration=Release //p:Platform=ARM //p:AppxBundle=Always
$(MSBUILD) winrt_example/giderosgame/giderosgame.WindowsPhone/giderosgame.WindowsPhone.vcxproj //t:Publish //p:Configuration=Release //p:Platform=ARM //p:AppxBundle=Always //v:m
cp winrt_example/giderosgame/giderosgame.WindowsPhone/Package.appxmanifest.bak winrt_example/giderosgame/giderosgame.WindowsPhone/Package.appxmanifest
rm winrt_example/giderosgame/giderosgame.WindowsPhone/Package.appxmanifest.bak
cp winrt_example/giderosgame/giderosgame.Windows/Package.appxmanifest winrt_example/giderosgame/giderosgame.Windows/Package.appxmanifest.bak
sed -e 's/Version="[^"]*"/Version="$(WINRT_APPX_GIDVERSION)"/' winrt_example/giderosgame/giderosgame.Windows/Package.appxmanifest.bak >winrt_example/giderosgame/giderosgame.Windows/Package.appxmanifest
$(MSBUILD) winrt_example/giderosgame/giderosgame.Windows/giderosgame.Windows.vcxproj //t:Publish //p:Configuration=Release //p:Platform=Win32 //p:AppxBundle=Always
$(MSBUILD) winrt_example/giderosgame/giderosgame.Windows/giderosgame.Windows.vcxproj //t:Publish //p:Configuration=Release //p:Platform=Win32 //p:AppxBundle=Always //V:m
cp winrt_example/giderosgame/giderosgame.Windows/Package.appxmanifest.bak winrt_example/giderosgame/giderosgame.Windows/Package.appxmanifest
rm winrt_example/giderosgame/giderosgame.Windows/Package.appxmanifest.bak
mkdir -p $(RELEASE)/Players
Expand Down
4 changes: 2 additions & 2 deletions scripts/GidiOS.mk
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ iosplayer.atv.libs: IOSLIBPATH=$(ROOT)/ios/iosplayer
##RULES
%.ios.libs:
#BUILDING $*
@cd $(IOSLIBPATH); $(XCODEBUILD) -alltargets -sdk iphonesimulator$$IOS_SDK -configuration Release -project $*.xcodeproj OTHER_CFLAGS="-fembed-bitcode"
@cd $(IOSLIBPATH); $(XCODEBUILD) -alltargets -sdk iphonesimulator$$IOS_SDK -configuration Release -project $*.xcodeproj
@cd $(IOSLIBPATH); $(XCODEBUILD) -alltargets -sdk iphoneos$$IOS_SDK -configuration Release -project $*.xcodeproj OTHER_CFLAGS="-fembed-bitcode"
@cd $(IOSLIBPATH); $(LIPO) build/Release-iphoneos/lib$*.a build/Release-iphonesimulator/lib$*.a -create -output lib$*.ios.a

%.atv.libs:
#BUILDING $*
@cd $(IOSLIBPATH); $(XCODEBUILD) -alltargets -sdk appletvsimulator$$TVOS_SDK -configuration Release -project $*.xcodeproj GCC_PREPROCESSOR_DEFINITIONS='$${inherited} TARGET_OS_TV=1' OTHER_CFLAGS="-fembed-bitcode"
@cd $(IOSLIBPATH); $(XCODEBUILD) -alltargets -sdk appletvsimulator$$TVOS_SDK -configuration Release -project $*.xcodeproj GCC_PREPROCESSOR_DEFINITIONS='$${inherited} TARGET_OS_TV=1'
@cd $(IOSLIBPATH); $(XCODEBUILD) -alltargets -sdk appletvos$$TVOS_SDK -configuration Release -project $*.xcodeproj GCC_PREPROCESSOR_DEFINITIONS='$${inherited} TARGET_OS_TV=1' OTHER_CFLAGS="-fembed-bitcode"
@cd $(IOSLIBPATH); $(LIPO) build/Release-appletvos/lib$*.a build/Release-appletvsimulator/lib$*.a -create -output lib$*.atv.a

Expand Down
1 change: 1 addition & 0 deletions texturepacker/texturepacker.pro
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#-------------------------------------------------

QT += core gui xml
CONFIG += silent

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

Expand Down
1 change: 1 addition & 0 deletions ui/ui.pro
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#-------------------------------------------------

QT += core gui xml network
CONFIG += silent

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

Expand Down

0 comments on commit 50f2a91

Please sign in to comment.