OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 # The yasm build process creates a slew of small C subprograms that | 5 # The yasm build process creates a slew of small C subprograms that |
6 # dynamically generate files at various point in the build process. This makes | 6 # dynamically generate files at various point in the build process. This makes |
7 # the build integration moderately complex. | 7 # the build integration moderately complex. |
8 # | 8 # |
9 # There are three classes of dynamically generated files: | 9 # There are three classes of dynamically generated files: |
10 # 1) C source files that should be included in the build (eg., lc3bid.c) | 10 # 1) C source files that should be included in the build (eg., lc3bid.c) |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 # Locations for various generated artifacts. | 55 # Locations for various generated artifacts. |
56 'shared_generated_dir': '<(SHARED_INTERMEDIATE_DIR)/third_party/yasm', | 56 'shared_generated_dir': '<(SHARED_INTERMEDIATE_DIR)/third_party/yasm', |
57 'generated_dir': '<(INTERMEDIATE_DIR)/third_party/yasm', | 57 'generated_dir': '<(INTERMEDIATE_DIR)/third_party/yasm', |
58 | 58 |
59 # Various files referenced by multiple targets. | 59 # Various files referenced by multiple targets. |
60 'version_file': 'version.mac', # Generated by genversion. | 60 'version_file': 'version.mac', # Generated by genversion. |
61 'genmodule_source': 'genmodule_outfile.c', | 61 'genmodule_source': 'genmodule_outfile.c', |
62 }, | 62 }, |
63 'target_defaults': { | 63 'target_defaults': { |
64 # Silence warnings in libc++ builds (C code doesn't need this flag). | 64 # Silence warnings in libc++ builds (C code doesn't need this flag). |
65 'ldflags!': [ '-stdlib=libc++', '-fsanitize=address' ], | 65 'ldflags!': [ '-stdlib=libc++', '-fsanitize=address,bool,integer-divide-by-z
ero,null,object-size,return,nonnull-attribute,returns-nonnull-attribute,unreacha
ble,vla-bound' ], |
66 # https://crbug.com/489901 | 66 # https://crbug.com/489901 |
67 'cflags!': [ '-fsanitize=bounds', '-fsanitize=address' ], | 67 'cflags!': [ '-fsanitize=bounds', '-fsanitize=address,bool,integer-divide-by
-zero,null,object-size,return,nonnull-attribute,returns-nonnull-attribute,unreac
hable,vla-bound' ], |
68 'libraries!': [ '-llog', ], | 68 'libraries!': [ '-llog', ], |
69 }, | 69 }, |
70 'targets': [ | 70 'targets': [ |
71 { | 71 { |
72 'target_name': 'yasm', | 72 'target_name': 'yasm', |
73 'type': 'executable', | 73 'type': 'executable', |
74 'toolsets': ['host'], | 74 'toolsets': ['host'], |
75 'dependencies': [ | 75 'dependencies': [ |
76 'config_sources', | 76 'config_sources', |
77 'genmacro', | 77 'genmacro', |
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
639 '-std=gnu99', | 639 '-std=gnu99', |
640 ], | 640 ], |
641 'cflags!': [ | 641 'cflags!': [ |
642 '-mfpu=neon', | 642 '-mfpu=neon', |
643 '-mthumb', | 643 '-mthumb', |
644 '-march=armv7-a', | 644 '-march=armv7-a', |
645 ], | 645 ], |
646 }, | 646 }, |
647 ], | 647 ], |
648 } | 648 } |
OLD | NEW |