mirror of https://github.com/auygun/kaliber.git
format
This commit is contained in:
parent
1b6352b775
commit
7c148d7555
|
@ -54,7 +54,7 @@ toolchain("gcc") {
|
|||
}
|
||||
|
||||
if (is_apple) {
|
||||
not_needed([ "ar" ]) # libtool is used instead.
|
||||
not_needed([ "ar" ]) # libtool is used instead.
|
||||
}
|
||||
|
||||
tool("alink") {
|
||||
|
|
|
@ -62,9 +62,7 @@ source_set("engine") {
|
|||
libs = []
|
||||
|
||||
if (target_os == "linux" || target_os == "win") {
|
||||
sources += [
|
||||
"platform/asset_file_generic.cc",
|
||||
]
|
||||
sources += [ "platform/asset_file_generic.cc" ]
|
||||
}
|
||||
|
||||
if (target_os == "linux") {
|
||||
|
|
|
@ -2,21 +2,29 @@
|
|||
#define ENGINE_RENDERER_OPENGL_OPENGL_H
|
||||
|
||||
#if defined(__ANDROID__)
|
||||
|
||||
// Use the modified Khronos header from ndk-helper. This gives access to
|
||||
// additional functionality the drivers may expose but which the system headers
|
||||
// do not.
|
||||
#include "third_party/android/gl3stub.h"
|
||||
|
||||
#include <GLES2/gl2ext.h>
|
||||
|
||||
#elif defined(__linux__)
|
||||
|
||||
#include "third_party/glew/glew.h"
|
||||
#include "third_party/glew/glxew.h"
|
||||
|
||||
#elif defined(_WIN32)
|
||||
|
||||
#define GLEW_STATIC
|
||||
#include "third_party/glew/glew.h"
|
||||
#include "third_party/glew/wglew.h"
|
||||
|
||||
#endif
|
||||
|
||||
#if defined(__linux__) || defined(_WIN32)
|
||||
|
||||
// Define the missing format for the etc1
|
||||
#ifndef GL_ETC1_RGB8_OES
|
||||
#define GL_ETC1_RGB8_OES 0x8D64
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
executable("hello_world") {
|
||||
sources = [
|
||||
"hello_world.cc",
|
||||
]
|
||||
sources = [ "hello_world.cc" ]
|
||||
|
||||
deps = [
|
||||
"//src/base",
|
||||
|
|
|
@ -79,7 +79,10 @@ source_set("third_party") {
|
|||
"volk/volk.c",
|
||||
]
|
||||
|
||||
defines = [ "VMA_STATIC_VULKAN_FUNCTIONS=1", "GLEW_STATIC" ]
|
||||
defines = [
|
||||
"VMA_STATIC_VULKAN_FUNCTIONS=1",
|
||||
"GLEW_STATIC",
|
||||
]
|
||||
|
||||
if (target_os == "linux" || target_os == "win") {
|
||||
sources += [
|
||||
|
|
Loading…
Reference in New Issue