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

Side by Side Diff: tools/flags/SkCommandLineFlags.cpp

Issue 1414643002: Enable BUILD file compilation of skia and dm with --config=android_arm. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Use -mfpu=neon everywhere for Android; fold opts targets back into srcs. Created 5 years, 1 month 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
« no previous file with comments | « tools/BUILD_simulator.py ('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 /* 1 /*
2 * Copyright 2013 Google Inc. 2 * Copyright 2013 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "SkCommandLineFlags.h" 8 #include "SkCommandLineFlags.h"
9 #include "SkTDArray.h" 9 #include "SkTDArray.h"
10 #include "SkTSort.h" 10 #include "SkTSort.h"
11 11
12 #include <stdlib.h> 12 #include <stdlib.h>
13 13
14 DEFINE_bool(undefok, false, "Silently ignore unknown flags instead of crashing." ); 14 #if defined(GOOGLE3) && defined(SK_BUILD_FOR_ANDROID)
15 // I don't know why, but this is defined by //base only for Android.
16 DECLARE_bool(undefok)
17 #else
18 DEFINE_bool(undefok, false, "Silently ignore unknown flags instead of crashi ng.");
19 #endif
15 20
16 template <typename T> static void ignore_result(const T&) {} 21 template <typename T> static void ignore_result(const T&) {}
17 22
18 bool SkFlagInfo::CreateStringFlag(const char* name, const char* shortName, 23 bool SkFlagInfo::CreateStringFlag(const char* name, const char* shortName,
19 SkCommandLineFlags::StringArray* pStrings, 24 SkCommandLineFlags::StringArray* pStrings,
20 const char* defaultValue, const char* helpStri ng) { 25 const char* defaultValue, const char* helpStri ng) {
21 SkFlagInfo* info = new SkFlagInfo(name, shortName, kString_FlagType, helpStr ing); 26 SkFlagInfo* info = new SkFlagInfo(name, shortName, kString_FlagType, helpStr ing);
22 info->fDefaultString.set(defaultValue); 27 info->fDefaultString.set(defaultValue);
23 28
24 info->fStrings = pStrings; 29 info->fStrings = pStrings;
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 } 382 }
378 383
379 } // namespace 384 } // namespace
380 385
381 bool SkCommandLineFlags::ShouldSkip(const SkTDArray<const char*>& strings, const char* name) { 386 bool SkCommandLineFlags::ShouldSkip(const SkTDArray<const char*>& strings, const char* name) {
382 return ShouldSkipImpl(strings, name); 387 return ShouldSkipImpl(strings, name);
383 } 388 }
384 bool SkCommandLineFlags::ShouldSkip(const StringArray& strings, const char* name ) { 389 bool SkCommandLineFlags::ShouldSkip(const StringArray& strings, const char* name ) {
385 return ShouldSkipImpl(strings, name); 390 return ShouldSkipImpl(strings, name);
386 } 391 }
OLDNEW
« no previous file with comments | « tools/BUILD_simulator.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698