Skip to content

Commit

Permalink
Add gradle build option to only build the plugin.
Browse files Browse the repository at this point in the history
The available sample apps will not be built.

$ cd source
$ ./gradlew -PsampleBuild=off

PiperOrigin-RevId: 334177741
Change-Id: Ic68b5ebf9d23e8b36ddb9d11b8ac9a59756a12be
  • Loading branch information
cya-x authored and copybara-github committed Sep 28, 2020
1 parent 625d23d commit 878f2b8
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion source/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,20 @@ project.ext {
editorDir = "Assets/GooglePlayGames/Editor"
pluginRepoDir = "${pluginProj}/${editorDir}/m2repository"

sampleList = ['CubicPilot', 'Minimal', 'NearbyDroids', 'SmokeTest']
// String for specifying if samples are built.
// If 'off', only the plugin will be built.
// If sampleBuild mode is anything other than 'off', assume samples are
// built.
// -PsampleBuild=off
if (!project.hasProperty('sampleBuild') || sampleBuild != 'off') {
sampleBuild = 'on'
}

if (sampleBuild == 'on') {
sampleList = ['CubicPilot', 'Minimal', 'NearbyDroids', 'SmokeTest']
} else {
sampleList = []
}

jarresolver_uri = System.getProperty("RESOLVER_PACKAGE_URI")
jarresolver_repos = [
Expand Down

0 comments on commit 878f2b8

Please sign in to comment.