From ddecaddccc10d5d05852c09cc6db0732f32ec40f Mon Sep 17 00:00:00 2001 From: Attila Uygun Date: Mon, 4 Sep 2023 19:27:42 +0200 Subject: [PATCH] Rename utils.gni to rules.gni --- build/{utils.gni => rules.gni} | 2 +- src/demo/BUILD.gn | 4 ++-- src/hello_world/BUILD.gn | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) rename build/{utils.gni => rules.gni} (92%) diff --git a/build/utils.gni b/build/rules.gni similarity index 92% rename from build/utils.gni rename to build/rules.gni index ce93dda..1c4a345 100644 --- a/build/utils.gni +++ b/build/rules.gni @@ -1,5 +1,5 @@ # Build a shared library for Android. Build an executable for other platforms. -template("game_tmpl") { +template("game") { if (target_os == "android") { _target_type = "shared_library" } else { diff --git a/src/demo/BUILD.gn b/src/demo/BUILD.gn index 391b13e..9933120 100644 --- a/src/demo/BUILD.gn +++ b/src/demo/BUILD.gn @@ -1,6 +1,6 @@ -import("//build/utils.gni") +import("//build/rules.gni") -game_tmpl("demo") { +game("demo") { sources = [ "credits.cc", "credits.h", diff --git a/src/hello_world/BUILD.gn b/src/hello_world/BUILD.gn index bb0c99d..39a6623 100644 --- a/src/hello_world/BUILD.gn +++ b/src/hello_world/BUILD.gn @@ -1,6 +1,6 @@ -import("//build/utils.gni") +import("//build/rules.gni") -game_tmpl("hello_world") { +game("hello_world") { sources = [ "hello_world.cc" ] deps = [ "//src/base",