This repository has been archived by the owner on Mar 2, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from googlesamples/release-schur
release-schur
- Loading branch information
Showing
542 changed files
with
11,147 additions
and
3,032 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,195 @@ | ||
//----------------------------------------------------------------------- | ||
// <copyright file="BuildTools.cs" company="Google"> | ||
// | ||
// Copyright 2015 Google Inc. All Rights Reserved. | ||
// | ||
// </copyright> | ||
//----------------------------------------------------------------------- | ||
using System.Collections; | ||
using UnityEngine; | ||
using UnityEditor; | ||
|
||
/// <summary> | ||
/// Build scripts for this specific project. Uses BuildUtil.cs, which should be sharable across | ||
/// all projects. | ||
/// | ||
/// To use this from the command line, run the following command: | ||
/// <FULLPATH_UNITY.APP>/Contents/MacOS/Unity -batchmode -projectPath <FULLPATH> -executeMethod <METHOD_TO_RUN> -quit | ||
/// | ||
/// For example: | ||
/// /Applications/Unity/Unity.app/Contents/MacOS/Unity -batchmode -projectPath ~/Unity/tango-examples-unity/UnityExamples/ -executeMethod BuildTools.BuildAll -quit | ||
/// | ||
/// For more info, goto <http://docs.unity3d.com/Manual/CommandLineArguments.html> | ||
/// </summary> | ||
public class BuildTools | ||
{ | ||
private static BuildUtil.APKSettings areaLearningAPK = new BuildUtil.APKSettings | ||
{ | ||
ProjectName = "Unity Area Learning", | ||
Icon = "TangoExamples/AreaLearning/Textures/icon.png", | ||
Scenes = new string[] { "Scenes/AreaLearning.unity" }, | ||
BundleIdentifier = "com.projecttango.experiments.unityarealearning" | ||
}; | ||
|
||
private static BuildUtil.APKSettings motionTrackingAPK = new BuildUtil.APKSettings | ||
{ | ||
ProjectName = "Unity Motion Tracking", | ||
Icon = "TangoExamples/MotionTracking/Textures/icon.png", | ||
Scenes = new string[] { "Scenes/MotionTracking.unity" }, | ||
BundleIdentifier = "com.projecttango.experiments.unitymotiontracking" | ||
}; | ||
|
||
private static BuildUtil.APKSettings pointCloudAPK = new BuildUtil.APKSettings | ||
{ | ||
ProjectName = "Unity Point Cloud", | ||
Icon = "TangoExamples/PointCloud/Textures/icon.png", | ||
Scenes = new string[] { "Scenes/PointCloud.unity" }, | ||
BundleIdentifier = "com.projecttango.experiments.unitypointcloud" | ||
}; | ||
|
||
private static BuildUtil.APKSettings augmentedRealityAPK = new BuildUtil.APKSettings | ||
{ | ||
ProjectName = "Unity Augmented Reality", | ||
Icon = "TangoExamples/ExperimentalAugmentedReality/Textures/ar_icon.png", | ||
Scenes = new string[] { "Scenes/ExperimentalAugmentedReality.unity" }, | ||
BundleIdentifier = "com.projecttango.experiments.augmentedreality" | ||
}; | ||
|
||
private static BuildUtil.APKSettings meshBuilderAPK = new BuildUtil.APKSettings | ||
{ | ||
ProjectName = "Unity Mesh Builder", | ||
Icon = null, | ||
Scenes = new string[] { "Scenes/ExperimentalMeshBuilder.unity" }, | ||
BundleIdentifier = "com.google.projecttango.meshbuilder" | ||
}; | ||
|
||
private static BuildUtil.APKSettings persistentStateAPK = new BuildUtil.APKSettings | ||
{ | ||
ProjectName = "Unity Persistent State", | ||
Icon = "TangoExamples/ExperimentalPersistentState/Textures/Moto-ProjectTango_Logo Only Square copy.png", | ||
Scenes = new string[] | ||
{ | ||
"Scenes/ExperimentalPersistentState/ExperimentalPersistentState_StartScene.unity", | ||
"Scenes/ExperimentalPersistentState/ExperimentalPersistentState_GameScene.unity" | ||
}, | ||
BundleIdentifier = "com.projecttango.persistentstate", | ||
}; | ||
|
||
private static BuildUtil.APKSettings virtualRealityAPK = new BuildUtil.APKSettings | ||
{ | ||
ProjectName = "Unity VirtualReality", | ||
Icon = "TangoExamples/ExperimentalVirtualReality/Textures/icon.png", | ||
Scenes = new string[] { "Scenes/ExperimentalVirtualReality.unity" }, | ||
BundleIdentifier = "com.projecttango.experimental.virtualreality" | ||
}; | ||
|
||
private static BuildUtil.PackageSettings sdkPackage = new BuildUtil.PackageSettings | ||
{ | ||
PackageName = "TangoSDK", | ||
Directories = new string[] { "Editor", "Google-Unity", "Plugins", "TangoSDK" } | ||
}; | ||
|
||
private static BuildUtil.PackageSettings sdkPlusPrefabsPackage = new BuildUtil.PackageSettings | ||
{ | ||
PackageName = "TangoSDK+Prefabs", | ||
Directories = new string[] { "Editor", "Google-Unity", "Plugins", "TangoPrefabs", "TangoSDK" } | ||
}; | ||
|
||
/// <summary> | ||
/// Builds all the appropriate APKs for this project. | ||
/// </summary> | ||
[MenuItem("Tango/Build/All", false, 1)] | ||
public static void BuildAll() | ||
{ | ||
BuildUtil.BuildAPK(areaLearningAPK); | ||
BuildUtil.BuildAPK(motionTrackingAPK); | ||
BuildUtil.BuildAPK(pointCloudAPK); | ||
BuildUtil.BuildAPK(augmentedRealityAPK); | ||
BuildUtil.BuildAPK(meshBuilderAPK); | ||
BuildUtil.BuildAPK(persistentStateAPK); | ||
BuildUtil.BuildAPK(virtualRealityAPK); | ||
BuildUtil.BuildPackage(sdkPackage); | ||
BuildUtil.BuildPackage(sdkPlusPrefabsPackage); | ||
} | ||
|
||
/// <summary> | ||
/// Function for UI. | ||
/// </summary> | ||
[MenuItem("Tango/Build/SDK Package", false, 21)] | ||
public static void BuildSdkPackage() | ||
{ | ||
BuildUtil.BuildPackage(sdkPackage); | ||
} | ||
|
||
/// <summary> | ||
/// Function for UI. | ||
/// </summary> | ||
[MenuItem("Tango/Build/SDK+Prefabs Package", false, 21)] | ||
public static void BuildSdkPlusPrefabsPackage() | ||
{ | ||
BuildUtil.BuildPackage(sdkPlusPrefabsPackage); | ||
} | ||
|
||
/// <summary> | ||
/// Function for UI. | ||
/// </summary> | ||
[MenuItem("Tango/Build/Area Learning")] | ||
public static void BuildAreaLearning() | ||
{ | ||
BuildUtil.BuildAPK(areaLearningAPK); | ||
} | ||
|
||
/// <summary> | ||
/// Function for UI. | ||
/// </summary> | ||
[MenuItem("Tango/Build/Motion Tracking")] | ||
public static void BuildMotionTracking() | ||
{ | ||
BuildUtil.BuildAPK(motionTrackingAPK); | ||
} | ||
|
||
/// <summary> | ||
/// Function for UI. | ||
/// </summary> | ||
[MenuItem("Tango/Build/Point Cloud")] | ||
public static void BuildPointCloud() | ||
{ | ||
BuildUtil.BuildAPK(pointCloudAPK); | ||
} | ||
|
||
/// <summary> | ||
/// Function for UI. | ||
/// </summary> | ||
[MenuItem("Tango/Build/Augmented Reality")] | ||
public static void BuildAugmentedReality() | ||
{ | ||
BuildUtil.BuildAPK(augmentedRealityAPK); | ||
} | ||
|
||
/// <summary> | ||
/// Function for UI. | ||
/// </summary> | ||
[MenuItem("Tango/Build/Mesh Builder")] | ||
public static void BuildMeshBuilder() | ||
{ | ||
BuildUtil.BuildAPK(meshBuilderAPK); | ||
} | ||
|
||
/// <summary> | ||
/// Function for UI. | ||
/// </summary> | ||
[MenuItem("Tango/Build/Persistent State")] | ||
public static void BuildPersistentState() | ||
{ | ||
BuildUtil.BuildAPK(persistentStateAPK); | ||
} | ||
|
||
/// <summary> | ||
/// Function for UI. | ||
/// </summary> | ||
[MenuItem("Tango/Build/Virtual Reality")] | ||
public static void BuildVirtualReality() | ||
{ | ||
BuildUtil.BuildAPK(virtualRealityAPK); | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
...s/PointCloud/Scripts/UXController.cs.meta → ...Examples/Assets/Editor/BuildTools.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.