Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 4f02ce3

Browse files
[[ cpptest ]] Add check targets for Mac and Windows
1 parent 63b3557 commit 4f02ce3

File tree

2 files changed

+29
-10
lines changed

2 files changed

+29
-10
lines changed

Makefile

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ config-linux-%:
8585
./config.sh --platform linux-$*
8686

8787
compile-linux-%:
88-
$(MAKE) -C build-linux-$*/livecode
88+
$(MAKE) -C build-linux-$*/livecode default
8989

9090
check-linux-%:
9191
$(MAKE) -C build-linux-$*/livecode check
@@ -106,7 +106,7 @@ config-android-%:
106106
./config.sh --platform android-$*
107107

108108
compile-android-%:
109-
$(MAKE) -C build-android-$*/livecode
109+
$(MAKE) -C build-android-$*/livecode default
110110

111111
check-android-%:
112112
$(MAKE) -C build-android-$*/livecode check
@@ -125,7 +125,10 @@ config-mac:
125125
./config.sh --platform mac
126126

127127
compile-mac:
128-
$(XCODEBUILD) -project "build-mac$(BUILD_SUBDIR)/$(BUILD_PROJECT).xcodeproj" -configuration $(BUILDTYPE)
128+
$(XCODEBUILD) -project "build-mac$(BUILD_SUBDIR)/$(BUILD_PROJECT).xcodeproj" -configuration $(BUILDTYPE) -target default
129+
130+
check-mac:
131+
$(XCODEBUILD) -project "build-mac$(BUILD_SUBDIR)/$(BUILD_PROJECT).xcodeproj" -configuration $(BUILDTYPE) -target check
129132

130133
all-mac:
131134
$(MAKE) config-mac
@@ -143,25 +146,31 @@ config-ios-%:
143146
./config.sh --platform ios --generator-output build-ios-$*/livecode -Dtarget_sdk=$*
144147

145148
compile-ios-%:
146-
$(XCODEBUILD) -project "build-ios-$*$(BUILD_SUBDIR)/$(BUILD_PROJECT).xcodeproj" -configuration $(BUILDTYPE)
149+
$(XCODEBUILD) -project "build-ios-$*$(BUILD_SUBDIR)/$(BUILD_PROJECT).xcodeproj" -configuration $(BUILDTYPE) -target default
150+
151+
check-ios-%:
152+
$(XCODEBUILD) -project "build-ios-$*$(BUILD_SUBDIR)/$(BUILD_PROJECT).xcodeproj" -configuration $(BUILDTYPE) -target check
147153

148154
# Dummy targets to prevent our build system from building iOS 5.1 simulator
149155
config-ios-iphonesimulator5.1:
150156
@echo "Skipping iOS simulator 5.1 (no longer supported)"
151157
compile-ios-iphonesimulator5.1:
152158
@echo "Skipping iOS simulator 5.1 (no longer supported)"
159+
check-ios-iphonesimulator5.1:
160+
@echo "Skipping iOS simulator 5.1 (no longer supported)"
153161

154162
# Provide some synonyms for "latest iOS SDK"
155-
$(addsuffix -ios-iphoneos,all config compile): %: %8.4
163+
$(addsuffix -ios-iphoneos,all config compile check): %: %8.4
156164
@true
157-
$(addsuffix -ios-iphonesimulator,all config compile): %: %8.4
165+
$(addsuffix -ios-iphonesimulator,all config compile check): %: %8.4
158166
@true
159167

160168
all_ios_subplatforms = iphoneos iphonesimulator $(IOS_SDKS)
161169

162170
all-ios: $(addprefix all-ios-,$(IOS_SDKS))
163171
config-ios: $(addprefix config-ios-,$(IOS_SDKS))
164172
compile-ios: $(addprefix compile-ios-,$(IOS_SDKS))
173+
check-ios: $(addprefix check-ios-,$(IOS_SDKS))
165174

166175
################################################################
167176
# Windows rules
@@ -172,7 +181,11 @@ config-win-%:
172181

173182
compile-win-%:
174183
# windows builds occur under Wine
175-
cd build-win-$* && $(WINE) /K ../make.cmd
184+
cd build-win-$* && $(WINE) /K ../make.cmd default
185+
186+
check-win-%:
187+
# windows builds occur under Wine
188+
cd build-win-$* && $(WINE) /K ../make.cmd check
176189

177190
all-win-%:
178191
$(MAKE) config-win-$*
@@ -188,7 +201,7 @@ config-emscripten:
188201
$(EMMAKE) ./config.sh --platform emscripten
189202

190203
compile-emscripten:
191-
$(EMMAKE) $(MAKE) -C build-emscripten/livecode
204+
$(EMMAKE) $(MAKE) -C build-emscripten/livecode default
192205

193206
check-emscripten:
194207
$(EMMAKE) $(MAKE) -C build-emscripten/livecode check

make.cmd

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,14 @@ IF %BUILD_EDITION%==commercial (
2121
) ELSE (
2222
SET BUILD_PROJECT=livecode\livecode.sln
2323
)
24-
25-
@msbuild %BUILD_PROJECT% /fl /flp:Verbosity=normal /nologo /p:Configuration=%BUILDTYPE% /m:1
24+
25+
IF -%1-==-- (
26+
SET TARGET=default
27+
) ELSE (
28+
SET TARGET=%1
29+
)
30+
31+
@msbuild %BUILD_PROJECT% /fl /flp:Verbosity=normal /nologo /p:Configuration=%BUILDTYPE% /m:1 /t:%TARGET%
2632

2733
@exit %ERRORLEVEL%
2834

0 commit comments

Comments
 (0)