# Build a shared library for Android. Build an executable for other platforms. template("game") { if (target_os == "android") { _target_type = "shared_library" } else { _target_type = "executable" } target(_target_type, target_name) { forward_variables_from(invoker, "*") } }