| OLD | NEW |
| 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 { | 5 { |
| 6 'variables': { | 6 'variables': { |
| 7 'chromium_code': 1, | 7 'chromium_code': 1, |
| 8 'grit_info_cmd': ['python', '../tools/grit/grit_info.py', | 8 'grit_info_cmd': ['python', '../../tools/grit/grit_info.py', |
| 9 '<@(grit_defines)'], | 9 '<@(grit_defines)'], |
| 10 'grit_cmd': ['python', '../tools/grit/grit.py'], | 10 'grit_cmd': ['python', '../../tools/grit/grit.py'], |
| 11 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/gfx', | 11 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/ui/gfx', |
| 12 }, | 12 }, |
| 13 'targets': [ | 13 'targets': [ |
| 14 { | 14 { |
| 15 'target_name': 'gfx_unittests', | 15 'target_name': 'gfx_unittests', |
| 16 'type': 'executable', | 16 'type': 'executable', |
| 17 'msvs_guid': 'C8BD2821-EAE5-4AC6-A0E4-F82CAC2956CC', | 17 'msvs_guid': 'C8BD2821-EAE5-4AC6-A0E4-F82CAC2956CC', |
| 18 'dependencies': [ | 18 'dependencies': [ |
| 19 'gfx', | 19 'gfx', |
| 20 'gfx_resources', | 20 'gfx_resources', |
| 21 '../base/base.gyp:test_support_base', | 21 '../../base/base.gyp:test_support_base', |
| 22 '../skia/skia.gyp:skia', | 22 '../../skia/skia.gyp:skia', |
| 23 '../testing/gtest.gyp:gtest', | 23 '../../testing/gtest.gyp:gtest', |
| 24 ], | 24 ], |
| 25 'sources': [ | 25 'sources': [ |
| 26 'blit_unittest.cc', | 26 'blit_unittest.cc', |
| 27 'codec/jpeg_codec_unittest.cc', | 27 'codec/jpeg_codec_unittest.cc', |
| 28 'codec/png_codec_unittest.cc', | 28 'codec/png_codec_unittest.cc', |
| 29 'color_utils_unittest.cc', | 29 'color_utils_unittest.cc', |
| 30 'font_unittest.cc', | 30 'font_unittest.cc', |
| 31 'insets_unittest.cc', | 31 'insets_unittest.cc', |
| 32 'rect_unittest.cc', | 32 'rect_unittest.cc', |
| 33 'run_all_unittests.cc', | 33 'run_all_unittests.cc', |
| 34 'scoped_image_unittest.cc', | 34 'scoped_image_unittest.cc', |
| 35 'skbitmap_operations_unittest.cc', | 35 'skbitmap_operations_unittest.cc', |
| 36 'test_suite.cc', | 36 'test_suite.cc', |
| 37 'test_suite.h', | 37 'test_suite.h', |
| 38 '<(SHARED_INTERMEDIATE_DIR)/gfx/gfx_resources.rc', | 38 '<(SHARED_INTERMEDIATE_DIR)/ui/gfx/gfx_resources.rc', |
| 39 ], | 39 ], |
| 40 'include_dirs': [ | 40 'include_dirs': [ |
| 41 '..', | 41 '../..', |
| 42 ], | 42 ], |
| 43 'conditions': [ | 43 'conditions': [ |
| 44 ['OS=="win"', { | 44 ['OS=="win"', { |
| 45 'sources': [ | 45 'sources': [ |
| 46 # TODO(brettw) re-enable this when the dependencies on WindowImpl ar
e fixed! | 46 # TODO(brettw) re-enable this when the dependencies on WindowImpl ar
e fixed! |
| 47 'canvas_direct2d_unittest.cc', | 47 'canvas_direct2d_unittest.cc', |
| 48 'icon_util_unittest.cc', | 48 'icon_util_unittest.cc', |
| 49 'native_theme_win_unittest.cc', | 49 'native_theme_win_unittest.cc', |
| 50 ], | 50 ], |
| 51 'include_dirs': [ | 51 'include_dirs': [ |
| 52 '..', | 52 '../..', |
| 53 '<(DEPTH)/third_party/wtl/include', | 53 '<(DEPTH)/third_party/wtl/include', |
| 54 ], | 54 ], |
| 55 'msvs_settings': { | 55 'msvs_settings': { |
| 56 'VCLinkerTool': { | 56 'VCLinkerTool': { |
| 57 'DelayLoadDLLs': [ | 57 'DelayLoadDLLs': [ |
| 58 'd2d1.dll', | 58 'd2d1.dll', |
| 59 'd3d10_1.dll', | 59 'd3d10_1.dll', |
| 60 ], | 60 ], |
| 61 'AdditionalDependencies': [ | 61 'AdditionalDependencies': [ |
| 62 'd2d1.lib', | 62 'd2d1.lib', |
| 63 'd3d10_1.lib', | 63 'd3d10_1.lib', |
| 64 ], | 64 ], |
| 65 }, | 65 }, |
| 66 } | 66 } |
| 67 }], | 67 }], |
| 68 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { | 68 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { |
| 69 'dependencies': [ | 69 'dependencies': [ |
| 70 '../build/linux/system.gyp:gtk', | 70 '../../build/linux/system.gyp:gtk', |
| 71 ], | 71 ], |
| 72 }], | 72 }], |
| 73 ], | 73 ], |
| 74 }, | 74 }, |
| 75 { | 75 { |
| 76 'target_name': 'gfx', | 76 'target_name': 'gfx', |
| 77 'type': '<(library)', | 77 'type': '<(library)', |
| 78 'msvs_guid': '13A8D36C-0467-4B4E-BAA3-FD69C45F076A', | 78 'msvs_guid': '13A8D36C-0467-4B4E-BAA3-FD69C45F076A', |
| 79 'dependencies': [ | 79 'dependencies': [ |
| 80 '../base/base.gyp:base', | 80 '../../base/base.gyp:base', |
| 81 '../base/base.gyp:base_i18n', | 81 '../../base/base.gyp:base_i18n', |
| 82 '../skia/skia.gyp:skia', | 82 '../../skia/skia.gyp:skia', |
| 83 '../third_party/icu/icu.gyp:icui18n', | 83 '../../third_party/icu/icu.gyp:icui18n', |
| 84 '../third_party/icu/icu.gyp:icuuc', | 84 '../../third_party/icu/icu.gyp:icuuc', |
| 85 '../third_party/libpng/libpng.gyp:libpng', | 85 '../../third_party/libpng/libpng.gyp:libpng', |
| 86 '../third_party/zlib/zlib.gyp:zlib', | 86 '../../third_party/zlib/zlib.gyp:zlib', |
| 87 'gfx_resources', | 87 'gfx_resources', |
| 88 '<(libjpeg_gyp_path):libjpeg', | 88 '<(libjpeg_gyp_path):libjpeg', |
| 89 ], | 89 ], |
| 90 'sources': [ | 90 'sources': [ |
| 91 'blit.cc', | 91 'blit.cc', |
| 92 'blit.h', | 92 'blit.h', |
| 93 'brush.h', | 93 'brush.h', |
| 94 'canvas.cc', | 94 'canvas.cc', |
| 95 'canvas.h', | 95 'canvas.h', |
| 96 'canvas_skia.h', | 96 'canvas_skia.h', |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 'gdi_util.cc', | 151 'gdi_util.cc', |
| 152 'gdi_util.h', | 152 'gdi_util.h', |
| 153 'icon_util.cc', | 153 'icon_util.cc', |
| 154 'icon_util.h', | 154 'icon_util.h', |
| 155 'native_theme_win.cc', | 155 'native_theme_win.cc', |
| 156 'native_theme_win.h', | 156 'native_theme_win.h', |
| 157 'win_util.cc', | 157 'win_util.cc', |
| 158 'win_util.h', | 158 'win_util.h', |
| 159 ], | 159 ], |
| 160 'include_dirs': [ | 160 'include_dirs': [ |
| 161 '..', | 161 '../..', |
| 162 '<(DEPTH)/third_party/wtl/include', | 162 '<(DEPTH)/third_party/wtl/include', |
| 163 ], | 163 ], |
| 164 }], | 164 }], |
| 165 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { | 165 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { |
| 166 'dependencies': [ | 166 'dependencies': [ |
| 167 # font_gtk.cc uses fontconfig. | 167 # font_gtk.cc uses fontconfig. |
| 168 # TODO(evanm): I think this is wrong; it should just use GTK. | 168 # TODO(evanm): I think this is wrong; it should just use GTK. |
| 169 '../build/linux/system.gyp:fontconfig', | 169 '../../build/linux/system.gyp:fontconfig', |
| 170 '../build/linux/system.gyp:gtk', | 170 '../../build/linux/system.gyp:gtk', |
| 171 ], | 171 ], |
| 172 'sources': [ | 172 'sources': [ |
| 173 'gtk_native_view_id_manager.cc', | 173 'gtk_native_view_id_manager.cc', |
| 174 'gtk_native_view_id_manager.h', | 174 'gtk_native_view_id_manager.h', |
| 175 'gtk_preserve_window.cc', | 175 'gtk_preserve_window.cc', |
| 176 'gtk_preserve_window.h', | 176 'gtk_preserve_window.h', |
| 177 'gtk_util.cc', | 177 'gtk_util.cc', |
| 178 'gtk_util.h', | 178 'gtk_util.h', |
| 179 'native_theme_linux.cc', | 179 'native_theme_linux.cc', |
| 180 'native_theme_linux.h', | 180 'native_theme_linux.h', |
| (...skipping 28 matching lines...) Expand all Loading... |
| 209 'message': 'Generating resources from <(input_path)', | 209 'message': 'Generating resources from <(input_path)', |
| 210 }, | 210 }, |
| 211 ], | 211 ], |
| 212 'direct_dependent_settings': { | 212 'direct_dependent_settings': { |
| 213 'include_dirs': [ | 213 'include_dirs': [ |
| 214 '<(grit_out_dir)', | 214 '<(grit_out_dir)', |
| 215 ], | 215 ], |
| 216 }, | 216 }, |
| 217 'conditions': [ | 217 'conditions': [ |
| 218 ['OS=="win"', { | 218 ['OS=="win"', { |
| 219 'dependencies': ['../build/win/system.gyp:cygwin'], | 219 'dependencies': ['../../build/win/system.gyp:cygwin'], |
| 220 }], | 220 }], |
| 221 ], | 221 ], |
| 222 }, | 222 }, |
| 223 | 223 |
| 224 ], | 224 ], |
| 225 } | 225 } |
| 226 | 226 |
| 227 # Local Variables: | 227 # Local Variables: |
| 228 # tab-width:2 | 228 # tab-width:2 |
| 229 # indent-tabs-mode:nil | 229 # indent-tabs-mode:nil |
| 230 # End: | 230 # End: |
| 231 # vim: set expandtab tabstop=2 shiftwidth=2: | 231 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |