• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2018 Google Inc.
2#
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5
6import("../third_party.gni")
7
8copy("copy-nima-cpp") {
9  sources = [
10    "../externals/Nima-Cpp/Source",
11  ]
12  outputs = [
13    "$target_gen_dir/Nima-Cpp/nima",
14  ]
15}
16
17copy("copy-nima-math-cpp") {
18  sources = [
19    "../externals/Nima-Math-Cpp/Source",
20  ]
21  outputs = [
22    "$target_gen_dir/Nima-Math-Cpp/nima",
23  ]
24}
25
26third_party("Nima-Cpp") {
27  deps = [
28    ":copy-nima-cpp",
29    ":copy-nima-math-cpp",
30  ]
31
32  public_include_dirs = [
33    "$target_gen_dir/Nima-Cpp",
34    "$target_gen_dir/Nima-Math-Cpp",
35  ]
36
37  configs -= [
38    "//gn:no_exceptions",
39    "//gn:no_rtti",
40  ]
41
42  sources = [
43    "../externals/Nima-Cpp/Source/Actor.cpp",
44    "../externals/Nima-Cpp/Source/ActorBone.cpp",
45    "../externals/Nima-Cpp/Source/ActorCollider.cpp",
46    "../externals/Nima-Cpp/Source/ActorComponent.cpp",
47    "../externals/Nima-Cpp/Source/ActorEvent.cpp",
48    "../externals/Nima-Cpp/Source/ActorIKTarget.cpp",
49    "../externals/Nima-Cpp/Source/ActorImage.cpp",
50    "../externals/Nima-Cpp/Source/ActorInstance.cpp",
51    "../externals/Nima-Cpp/Source/ActorNode.cpp",
52    "../externals/Nima-Cpp/Source/ActorNodeSolo.cpp",
53    "../externals/Nima-Cpp/Source/ActorRenderNode.cpp",
54    "../externals/Nima-Cpp/Source/ActorRootBone.cpp",
55    "../externals/Nima-Cpp/Source/ActorStaticMesh.cpp",
56    "../externals/Nima-Cpp/Source/Animation/ActorAnimation.cpp",
57    "../externals/Nima-Cpp/Source/Animation/ActorAnimationInstance.cpp",
58    "../externals/Nima-Cpp/Source/Animation/ComponentAnimation.cpp",
59    "../externals/Nima-Cpp/Source/Animation/Interpolators/CubicSolver.cpp",
60    "../externals/Nima-Cpp/Source/Animation/Interpolators/ValueTimeCurveInterpolator.cpp",
61    "../externals/Nima-Cpp/Source/Animation/KeyFrames/KeyFrame.cpp",
62    "../externals/Nima-Cpp/Source/Animation/KeyFrames/KeyFrameActiveChild.cpp",
63    "../externals/Nima-Cpp/Source/Animation/KeyFrames/KeyFrameCustomProperty.cpp",
64    "../externals/Nima-Cpp/Source/Animation/KeyFrames/KeyFrameDrawOrder.cpp",
65    "../externals/Nima-Cpp/Source/Animation/KeyFrames/KeyFrameIKStrength.cpp",
66    "../externals/Nima-Cpp/Source/Animation/KeyFrames/KeyFrameIsCollisionEnabled.cpp",
67    "../externals/Nima-Cpp/Source/Animation/KeyFrames/KeyFrameLength.cpp",
68    "../externals/Nima-Cpp/Source/Animation/KeyFrames/KeyFrameNumeric.cpp",
69    "../externals/Nima-Cpp/Source/Animation/KeyFrames/KeyFrameOpacity.cpp",
70    "../externals/Nima-Cpp/Source/Animation/KeyFrames/KeyFramePosX.cpp",
71    "../externals/Nima-Cpp/Source/Animation/KeyFrames/KeyFramePosY.cpp",
72    "../externals/Nima-Cpp/Source/Animation/KeyFrames/KeyFrameRotation.cpp",
73    "../externals/Nima-Cpp/Source/Animation/KeyFrames/KeyFrameScaleX.cpp",
74    "../externals/Nima-Cpp/Source/Animation/KeyFrames/KeyFrameScaleY.cpp",
75    "../externals/Nima-Cpp/Source/Animation/KeyFrames/KeyFrameSequence.cpp",
76    "../externals/Nima-Cpp/Source/Animation/KeyFrames/KeyFrameTrigger.cpp",
77    "../externals/Nima-Cpp/Source/Animation/KeyFrames/KeyFrameVertexDeform.cpp",
78    "../externals/Nima-Cpp/Source/Animation/KeyFrames/KeyFrameWithInterpolation.cpp",
79    "../externals/Nima-Cpp/Source/Animation/PropertyAnimation.cpp",
80    "../externals/Nima-Cpp/Source/BinaryReader.cpp",
81    "../externals/Nima-Cpp/Source/BlockReader.cpp",
82    "../externals/Nima-Cpp/Source/CustomProperty.cpp",
83    "../externals/Nima-Cpp/Source/NestedActorAsset.cpp",
84    "../externals/Nima-Cpp/Source/NestedActorNode.cpp",
85    "../externals/Nima-Math-Cpp/Source/Mat2D.cpp",
86    "../externals/Nima-Math-Cpp/Source/Vec2D.cpp",
87  ]
88
89  cflags_cc = []
90  if (is_win) {
91    defines = [ "_USE_MATH_DEFINES" ]
92    cflags_cc += [
93      "/FI",
94      "algorithm",
95    ]
96  }
97
98  enabled = !is_win || !is_clang
99}
100