Skip to content
This repository was archived by the owner on Jan 26, 2023. It is now read-only.
/ rdk-aamp Public archive

Commit 199a73b

Browse files
jbrigh124Paulpandian Mariappan
jbrigh124
authored and
Paulpandian Mariappan
committed
RDKAAMP-266 [AAMP SIMULATOR] Make default console in terminal instead of xcode
Reason for change: Created files that allows for custom scheme options on install and made default console in terminal. Test Procedure: Install aamp on MacOS and start aamp through Xcode after install. Success will be that console opens bash terminal. Risks: Very Low Signed-off-by: [email protected] Change-Id: I340d8c9a4ffe2d03b6f444bd6e58a66dbf4d8bd8 (cherry picked from commit a1dcf30)
1 parent 6e0ced2 commit 199a73b

File tree

2 files changed

+91
-0
lines changed

2 files changed

+91
-0
lines changed

OSX/aamp-cli.xcscheme

+79
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1340"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "B68E1ED838BC47AB92CE713F"
18+
BuildableName = "aamp-cli"
19+
BlueprintName = "aamp-cli"
20+
ReferencedContainer = "container:build/AAMP.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
shouldUseLaunchSchemeArgsEnv = "YES">
30+
<Testables>
31+
</Testables>
32+
</TestAction>
33+
<LaunchAction
34+
buildConfiguration = "Debug"
35+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
36+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
37+
launchStyle = "0"
38+
useCustomWorkingDirectory = "NO"
39+
ignoresPersistentStateOnLaunch = "NO"
40+
debugDocumentVersioning = "YES"
41+
debugServiceExtension = "internal"
42+
consoleMode = "1"
43+
allowLocationSimulation = "YES">
44+
<BuildableProductRunnable
45+
runnableDebuggingMode = "0">
46+
<BuildableReference
47+
BuildableIdentifier = "primary"
48+
BlueprintIdentifier = "B68E1ED838BC47AB92CE713F"
49+
BuildableName = "aamp-cli"
50+
BlueprintName = "aamp-cli"
51+
ReferencedContainer = "container:build/AAMP.xcodeproj">
52+
</BuildableReference>
53+
</BuildableProductRunnable>
54+
</LaunchAction>
55+
<ProfileAction
56+
buildConfiguration = "Release"
57+
shouldUseLaunchSchemeArgsEnv = "YES"
58+
savedToolIdentifier = ""
59+
useCustomWorkingDirectory = "NO"
60+
debugDocumentVersioning = "YES">
61+
<BuildableProductRunnable
62+
runnableDebuggingMode = "0">
63+
<BuildableReference
64+
BuildableIdentifier = "primary"
65+
BlueprintIdentifier = "B68E1ED838BC47AB92CE713F"
66+
BuildableName = "aamp-cli"
67+
BlueprintName = "aamp-cli"
68+
ReferencedContainer = "container:build/AAMP.xcodeproj">
69+
</BuildableReference>
70+
</BuildableProductRunnable>
71+
</ProfileAction>
72+
<AnalyzeAction
73+
buildConfiguration = "Debug">
74+
</AnalyzeAction>
75+
<ArchiveAction
76+
buildConfiguration = "Release"
77+
revealArchiveInOrganizer = "YES">
78+
</ArchiveAction>
79+
</Scheme>

install-aamp.sh

+12
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,14 @@ if [[ "$OSTYPE" == "darwin"* ]]; then
337337

338338
echo "Starting Xcode, open aamp/build/AAMP.xcodeproj project file OR Execute ./aamp-cli or /playbintest <url> binaries"
339339
echo "Opening AAMP project in Xcode..."
340+
341+
cd AAMP.xcodeproj
342+
mkdir xcshareddata
343+
cd xcshareddata
344+
mkdir xcschemes
345+
cd ../../
346+
cp ../OSX/aamp-cli.xcscheme AAMP.xcodeproj/xcshareddata/xcschemes
347+
chsh -s /bin/bash
340348

341349
(sleep 20 ; open AAMP.xcodeproj) &
342350

@@ -346,6 +354,10 @@ if [[ "$OSTYPE" == "darwin"* ]]; then
346354
if [ -f "./Debug/aamp-cli" ]; then
347355
echo "OSX AAMP Build PASSED"
348356
arr_install_status+=("OSX AAMP Build PASSED")
357+
358+
#sed -i ".bak" 's/allowLocationSimulation = "YES"/allowLocationSimulation = "YES"\n consoleMode = "1"/g' AAMP.xcodeproj/xcshareddata/xcschemes/aamp-cli.xcscheme
359+
360+
349361
else
350362
echo "OSX AAMP Build FAILED"
351363
arr_install_status+=("OSX AAMP Build FAILED")

0 commit comments

Comments
 (0)