Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Side by Side Diff: mojo/tools/mojob.sh

Issue 226213002: Removes use_mojo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge 2 trunk Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/test/content_test_launcher.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 # Copyright 2013 The Chromium Authors. All rights reserved. 2 # Copyright 2013 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 # This a simple script to make building/testing Mojo components easier (on 6 # This a simple script to make building/testing Mojo components easier (on
7 # Linux). 7 # Linux).
8 8
9 # TODO(vtl): Maybe make the test runner smart and not run unchanged test 9 # TODO(vtl): Maybe make the test runner smart and not run unchanged test
10 # binaries. 10 # binaries.
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 test "$BUILD_TEST_TYPE" = Debug -o "$BUILD_TEST_TYPE" = Debug_and_Release 76 test "$BUILD_TEST_TYPE" = Debug -o "$BUILD_TEST_TYPE" = Debug_and_Release
77 } 77 }
78 should_do_Release() { 78 should_do_Release() {
79 test "$BUILD_TEST_TYPE" = Release -o "$BUILD_TEST_TYPE" = Debug_and_Release 79 test "$BUILD_TEST_TYPE" = Release -o "$BUILD_TEST_TYPE" = Debug_and_Release
80 } 80 }
81 81
82 # Valid values: clang or gcc. 82 # Valid values: clang or gcc.
83 COMPILER=clang 83 COMPILER=clang
84 # Valid values: shared or static. 84 # Valid values: shared or static.
85 COMPONENT=shared 85 COMPONENT=shared
86 # TODO(vtl): Remove this. crbug.com/353602
87 # Valid values: enabled or disabled.
88 USE_MOJO=enabled
89 make_gyp_defines() { 86 make_gyp_defines() {
90 local options=() 87 local options=()
91 # Always include these options. 88 # Always include these options.
92 options+=("use_aura=1") 89 options+=("use_aura=1")
93 case "$COMPILER" in 90 case "$COMPILER" in
94 clang) 91 clang)
95 options+=("clang=1") 92 options+=("clang=1")
96 ;; 93 ;;
97 gcc) 94 gcc)
98 options+=("clang=0") 95 options+=("clang=0")
99 ;; 96 ;;
100 esac 97 esac
101 case "$COMPONENT" in 98 case "$COMPONENT" in
102 shared) 99 shared)
103 options+=("component=shared_library") 100 options+=("component=shared_library")
104 ;; 101 ;;
105 static) 102 static)
106 options+=("component=static_library") 103 options+=("component=static_library")
107 ;; 104 ;;
108 esac 105 esac
109 case "$USE_MOJO" in
110 enabled)
111 options+=("use_mojo=1")
112 ;;
113 disabled)
114 options+=("use_mojo=0")
115 ;;
116 esac
117 echo ${options[*]} 106 echo ${options[*]}
118 } 107 }
119 108
120 # We're in src/mojo/tools. We want to get to src. 109 # We're in src/mojo/tools. We want to get to src.
121 cd "$(realpath "$(dirname "$0")")/../.." 110 cd "$(realpath "$(dirname "$0")")/../.."
122 111
123 if [ $# -eq 0 ]; then 112 if [ $# -eq 0 ]; then
124 do_help 113 do_help
125 exit 0 114 exit 0
126 fi 115 fi
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 ;; 163 ;;
175 --gcc) 164 --gcc)
176 COMPILER=gcc 165 COMPILER=gcc
177 ;; 166 ;;
178 --shared) 167 --shared)
179 COMPONENT=shared 168 COMPONENT=shared
180 ;; 169 ;;
181 --static) 170 --static)
182 COMPONENT=static 171 COMPONENT=static
183 ;; 172 ;;
184 --use-mojo)
185 USE_MOJO=enabled
186 ;;
187 --no-use-mojo)
188 USE_MOJO=disabled
189 ;;
190 *) 173 *)
191 echo "Unknown command \"${arg}\". Try \"$(basename "$0") help\"." 174 echo "Unknown command \"${arg}\". Try \"$(basename "$0") help\"."
192 exit 1 175 exit 1
193 ;; 176 ;;
194 esac 177 esac
195 done 178 done
OLDNEW
« no previous file with comments | « content/test/content_test_launcher.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698