This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# third_party/glfw/glfw.BUILD | |
# ===== win32 ===== | |
WIN32_DEFINES = [...] | |
WIN32_HDRS = [...] | |
WIN32_SRCS = [...] | |
WIN32_LINKOPTS = [...] | |
# ===== linux ===== | |
LINUX_DEFINES = [...] | |
LINUX_HDRS = [...] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# env_setup/BUILD | |
load("@rules_cc//cc:defs.bzl", "cc_binary") | |
cc_binary( | |
name = "env_setup", | |
srcs = glob(["*.cpp"]), | |
deps = [ | |
"//third_party/glfw", | |
"//third_party/glm", | |
"@rules_vulkan//vulkan:vulkan_cc_library" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# WORKSPACE | |
... | |
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | |
GLM_VERSION = "0.9.9.8" | |
http_archive( | |
name = "glm", | |
build_file = "@//third_party/glm:glm.BUILD", | |
sha256 = "4605259c22feadf35388c027f07b345ad3aa3b12631a5a316347f7566c6f1839", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# third_party/glm/BUILD | |
package(default_visibility = ["//visibility:public"]) | |
alias( | |
name = "glm", | |
actual = "@glm", | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# third_party/glm/glm.BUILD | |
load("@rules_cc//cc:defs.bzl", "cc_library") | |
cc_library( | |
name = "glm", | |
hdrs = glob([ | |
"glm/**/*.hpp", | |
"glm/**/*.h", | |
]), | |
includes = ["."], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Kotlin | |
import android.os.SystemClock | |
val uptimeSec = SystemClock.elapsedRealtime() / 1000.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Kotlin | |
import android.system.Os | |
import android.system.OsConstants | |
val numCores = Os.sysconf(OsConstants._SC_NPROCESSORS_CONF) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Kotlin | |
import android.system.Os | |
import android.system.OsConstants | |
val clockSpeedHz = Os.sysconf(OsConstants._SC_CLK_TCK) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Query { | |
# Returns the list of users. | |
users: [User!]! | |
# Returns specific user by ID. | |
user(userId: String!): User | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
load("@rules_android//android:rules.bzl", "android_library") | |
load("@rules_java//java:defs.bzl", "java_library") | |
package(default_visibility = ["//visibility:public"]) | |
java_library( | |
name = "my-feature", | |
srcs = ["src/io/morfly/bfa/MyFeature.java"], | |
) |