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

Side by Side Diff: third_party/gflags/gflags.gyp

Issue 2509703002: Remove all references to GYP (Closed)
Patch Set: Rebased Created 4 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 | « third_party/gflags/OWNERS ('k') | third_party/winsdk_samples/OWNERS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright 2011 Google Inc.
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 {
16 'variables': {
17 'gflags_root': '<(DEPTH)/third_party/gflags',
18 'conditions': [
19 ['OS=="win"', {
20 'gflags_gen_arch_root': '<(gflags_root)/gen/win',
21 }, {
22 'gflags_gen_arch_root': '<(gflags_root)/gen/posix',
23 }],
24 ],
25 },
26 'targets': [
27 {
28 'target_name': 'gflags',
29 'type': 'static_library',
30 'include_dirs': [
31 '<(gflags_gen_arch_root)/include/gflags', # For configured files.
32 '<(gflags_gen_arch_root)/include/private', # For config.h
33 '<(gflags_root)/src/src', # For everything else.
34 ],
35 'defines': [
36 # These macros exist so flags and symbols are properly
37 # exported when building DLLs. Since we don't build DLLs, we
38 # need to disable them.
39 'GFLAGS_DLL_DECL=',
40 'GFLAGS_DLL_DECLARE_FLAG=',
41 'GFLAGS_DLL_DEFINE_FLAG=',
42 ],
43 'direct_dependent_settings': {
44 'include_dirs': [
45 '<(gflags_gen_arch_root)/include', # For configured files.
46 '<(gflags_root)/src/src', # For everything else.
47 ],
48 'defines': [
49 'GFLAGS_DLL_DECL=',
50 'GFLAGS_DLL_DECLARE_FLAG=',
51 'GFLAGS_DLL_DEFINE_FLAG=',
52 ],
53 },
54 'sources': [
55 'src/src/gflags.cc',
56 'src/src/gflags_completions.cc',
57 'src/src/gflags_reporting.cc',
58 ],
59 'conditions': [
60 ['OS=="win"', {
61 'sources': [
62 'src/src/windows_port.cc',
63 ],
64 'msvs_disabled_warnings': [
65 4005, # WIN32_LEAN_AND_MEAN redefinition.
66 4267, # Conversion from size_t to "type".
67 ],
68 'configurations': {
69 'Common_Base': {
70 'msvs_configuration_attributes': {
71 'CharacterSet': '2', # Use Multi-byte Character Set.
72 },
73 },
74 },
75 }],
76 # TODO(andrew): Look into fixing this warning upstream:
77 # http://code.google.com/p/webrtc/issues/detail?id=760
78 ['OS=="win" and clang==1', {
79 'msvs_settings': {
80 'VCCLCompilerTool': {
81 'AdditionalOptions': [
82 '-Wno-microsoft-include',
83 ],
84 },
85 },
86 }],
87 ['clang==1', {
88 'cflags': [
89 '-Wno-microsoft-include',
90 ],
91 }],
92 ],
93 },
94 ],
95 }
OLDNEW
« no previous file with comments | « third_party/gflags/OWNERS ('k') | third_party/winsdk_samples/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698