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

Side by Side Diff: ios/third_party/ochamcrest/BUILD.gn

Issue 1879493002: [iOS/GN] Convert //ios/third_party/ochamcrest to build a framework. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-framework-bundle
Patch Set: Add a comment to explain the "set_sources_assignment_filter" in "ios_framework_bundle" template Created 4 years, 8 months 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 | « build/config/ios/rules.gni ('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 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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 # OCHamcrest sources contains import rules using relative file names 5 import("//build/config/ios/rules.gni")
6 # ("HCAssertThat.h") and other using paths in an installed framework 6
7 # (<OCHamcrest/HCMatcher.h>). In order to build, copy all the sources 7 ios_framework_bundle("ochamcrest") {
8 # to <(SHARED_INTERMEDIATE_DIR)/ios/third_party/ochmacrest/OCHamcrest
9 # so that both type of import work (another option considered was to
10 # build forwarding headers but this required duplicating the list of
11 # files in GN build and was ruled out).
12 #
13 # To avoid ODR violation, direct import of ios/third_party/ochamcrest
14 # is forbidden in ios/DEPS and code should instead use import as if
15 # OCHamcrest was in a framework (i.e. #import <OCHamcrest/OCHamcrest.h>).
16 copy("ochamcrest_copy_files") {
17 testonly = true 8 testonly = true
18 visibility = [ ":ochamcrest" ] 9 output_name = "OCHamcrest"
19 sources = [ 10 sources = [
20 "src/Source/Core/HCAssertThat.h", 11 "src/Source/Core/HCAssertThat.h",
21 "src/Source/Core/HCAssertThat.m", 12 "src/Source/Core/HCAssertThat.m",
22 "src/Source/Core/HCBaseDescription.h", 13 "src/Source/Core/HCBaseDescription.h",
23 "src/Source/Core/HCBaseDescription.m", 14 "src/Source/Core/HCBaseDescription.m",
24 "src/Source/Core/HCBaseMatcher.h", 15 "src/Source/Core/HCBaseMatcher.h",
25 "src/Source/Core/HCBaseMatcher.m", 16 "src/Source/Core/HCBaseMatcher.m",
26 "src/Source/Core/HCDescription.h", 17 "src/Source/Core/HCDescription.h",
27 "src/Source/Core/HCDiagnosingMatcher.h", 18 "src/Source/Core/HCDiagnosingMatcher.h",
28 "src/Source/Core/HCDiagnosingMatcher.m", 19 "src/Source/Core/HCDiagnosingMatcher.m",
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 "src/Source/Library/Text/HCStringContainsInOrder.h", 154 "src/Source/Library/Text/HCStringContainsInOrder.h",
164 "src/Source/Library/Text/HCStringContainsInOrder.m", 155 "src/Source/Library/Text/HCStringContainsInOrder.m",
165 "src/Source/Library/Text/HCStringEndsWith.h", 156 "src/Source/Library/Text/HCStringEndsWith.h",
166 "src/Source/Library/Text/HCStringEndsWith.m", 157 "src/Source/Library/Text/HCStringEndsWith.m",
167 "src/Source/Library/Text/HCStringStartsWith.h", 158 "src/Source/Library/Text/HCStringStartsWith.h",
168 "src/Source/Library/Text/HCStringStartsWith.m", 159 "src/Source/Library/Text/HCStringStartsWith.m",
169 "src/Source/Library/Text/HCSubstringMatcher.h", 160 "src/Source/Library/Text/HCSubstringMatcher.h",
170 "src/Source/Library/Text/HCSubstringMatcher.m", 161 "src/Source/Library/Text/HCSubstringMatcher.m",
171 "src/Source/OCHamcrest.h", 162 "src/Source/OCHamcrest.h",
172 ] 163 ]
173 outputs = [ 164 public_headers = [
174 "$root_gen_dir/ios/third_party/ochamcrest/OCHamcrest/{{source_file_part}}", 165 "src/Source/Core/HCAssertThat.h",
166 "src/Source/Core/HCBaseDescription.h",
167 "src/Source/Core/HCBaseMatcher.h",
168 "src/Source/Core/HCDescription.h",
169 "src/Source/Core/HCDiagnosingMatcher.h",
170 "src/Source/Core/HCMatcher.h",
171 "src/Source/Core/HCSelfDescribing.h",
172 "src/Source/Core/HCStringDescription.h",
173 "src/Source/Core/Helpers/HCCollect.h",
174 "src/Source/Core/Helpers/HCInvocationMatcher.h",
175 "src/Source/Core/Helpers/HCRequireNonNilObject.h",
176 "src/Source/Core/Helpers/HCWrapInMatcher.h",
177 "src/Source/Core/Helpers/TestFailureReporters/HCTestFailure.h",
178 "src/Source/Core/Helpers/TestFailureReporters/HCTestFailureReporter.h",
179 "src/Source/Core/Helpers/TestFailureReporters/HCTestFailureReporterChain.h",
180 "src/Source/Library/Collection/HCEvery.h",
181 "src/Source/Library/Collection/HCHasCount.h",
182 "src/Source/Library/Collection/HCIsCollectionContaining.h",
183 "src/Source/Library/Collection/HCIsCollectionContainingInAnyOrder.h",
184 "src/Source/Library/Collection/HCIsCollectionContainingInOrder.h",
185 "src/Source/Library/Collection/HCIsCollectionContainingInRelativeOrder.h",
186 "src/Source/Library/Collection/HCIsCollectionOnlyContaining.h",
187 "src/Source/Library/Collection/HCIsDictionaryContaining.h",
188 "src/Source/Library/Collection/HCIsDictionaryContainingEntries.h",
189 "src/Source/Library/Collection/HCIsDictionaryContainingKey.h",
190 "src/Source/Library/Collection/HCIsDictionaryContainingValue.h",
191 "src/Source/Library/Collection/HCIsEmptyCollection.h",
192 "src/Source/Library/Collection/HCIsIn.h",
193 "src/Source/Library/Decorator/HCDescribedAs.h",
194 "src/Source/Library/Decorator/HCIs.h",
195 "src/Source/Library/Logical/HCAllOf.h",
196 "src/Source/Library/Logical/HCAnyOf.h",
197 "src/Source/Library/Logical/HCIsAnything.h",
198 "src/Source/Library/Logical/HCIsNot.h",
199 "src/Source/Library/Number/HCIsCloseTo.h",
200 "src/Source/Library/Number/HCIsEqualToNumber.h",
201 "src/Source/Library/Number/HCIsTrueFalse.h",
202 "src/Source/Library/Number/HCNumberAssert.h",
203 "src/Source/Library/Number/HCOrderingComparison.h",
204 "src/Source/Library/Object/HCArgumentCaptor.h",
205 "src/Source/Library/Object/HCClassMatcher.h",
206 "src/Source/Library/Object/HCConformsToProtocol.h",
207 "src/Source/Library/Object/HCHasDescription.h",
208 "src/Source/Library/Object/HCHasProperty.h",
209 "src/Source/Library/Object/HCIsEqual.h",
210 "src/Source/Library/Object/HCIsInstanceOf.h",
211 "src/Source/Library/Object/HCIsNil.h",
212 "src/Source/Library/Object/HCIsSame.h",
213 "src/Source/Library/Object/HCIsTypeOf.h",
214 "src/Source/Library/Object/HCThrowsException.h",
215 "src/Source/Library/Text/HCIsEqualIgnoringCase.h",
216 "src/Source/Library/Text/HCIsEqualIgnoringWhiteSpace.h",
217 "src/Source/Library/Text/HCStringContains.h",
218 "src/Source/Library/Text/HCStringContainsInOrder.h",
219 "src/Source/Library/Text/HCStringEndsWith.h",
220 "src/Source/Library/Text/HCStringStartsWith.h",
221 "src/Source/Library/Text/HCSubstringMatcher.h",
222 "src/Source/OCHamcrest.h",
175 ] 223 ]
224
225 libs = [
226 "Foundation.framework",
227 "UIKit.framework",
228 ]
229
230 configs += [ "//build/config/compiler:enable_arc" ]
231 configs -= [ "//build/config/gcc:symbol_visibility_hidden" ]
176 } 232 }
177
178 config("config") {
179 visibility = [ ":ochamcrest" ]
180 libs = [ "XCTest.framework" ]
181 include_dirs = [ "$root_gen_dir/ios/third_party/ochamcrest" ]
182 }
183
184 source_set("ochamcrest") {
185 testonly = true
186 configs += [
187 ":config",
188 "//build/config/compiler:enable_arc",
189 "//build/config/compiler:no_chromium_code",
190 ]
191 public_configs = [ ":config" ]
192 public_deps = [
193 ":ochamcrest_copy_files",
194 ]
195 sources = get_target_outputs(":ochamcrest_copy_files")
196 }
OLDNEW
« no previous file with comments | « build/config/ios/rules.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698