1 # Copyright (c) 2012 Google Inc. All rights reserved. 2 # Use of this source code is governed by a BSD-style license that can be 3 # found in the LICENSE file. 4 5 { 6 'targets': [ 7 { 8 'target_name': 'with_resources', 9 'type': 'executable', 10 'msvs_settings': { 11 'VCCLCompilerTool': { 12 'DebugInformationFormat': '3', 13 }, 14 'VCLinkerTool': { 15 'GenerateDebugInformation': 'true', 16 }, 17 'VCResourceCompilerTool': { 18 'Culture' : '1033', 19 }, 20 }, 21 'sources': [ 22 'hello.cpp', 23 'hello.rc', 24 ], 25 'libraries': [ 26 'kernel32.lib', 27 'user32.lib', 28 ], 29 }, 30 { 31 'target_name': 'with_resources_subdir', 32 'type': 'executable', 33 'msvs_settings': { 34 'VCCLCompilerTool': { 35 'DebugInformationFormat': '3', 36 }, 37 'VCLinkerTool': { 38 'GenerateDebugInformation': 'true', 39 }, 40 'VCResourceCompilerTool': { 41 'Culture' : '1033', 42 }, 43 }, 44 'sources': [ 45 'hello.cpp', 46 'subdir/hello2.rc', 47 ], 48 'libraries': [ 49 'kernel32.lib', 50 'user32.lib', 51 ], 52 }, 53 { 54 'target_name': 'with_include_subdir', 55 'type': 'executable', 56 'msvs_settings': { 57 'VCCLCompilerTool': { 58 'DebugInformationFormat': '3', 59 }, 60 'VCLinkerTool': { 61 'GenerateDebugInformation': 'true', 62 }, 63 'VCResourceCompilerTool': { 64 'Culture' : '1033', 65 }, 66 }, 67 'resource_include_dirs': [ 68 '$(ProjectDir)\\subdir', 69 ], 70 'sources': [ 71 'hello.cpp', 72 'hello3.rc', 73 ], 74 'libraries': [ 75 'kernel32.lib', 76 'user32.lib', 77 ], 78 }, 79 { 80 'target_name': 'resource_only_dll', 81 'type': 'shared_library', 82 'msvs_settings': { 83 'VCLinkerTool': { 84 'ResourceOnlyDLL': 'true', 85 }, 86 }, 87 'sources': [ 88 'hello.rc', 89 ], 90 }, 91 ], 92 } 93