This commit is contained in:
Attila Uygun 2023-08-12 23:04:58 +02:00
parent 1b6352b775
commit 7c148d7555
5 changed files with 15 additions and 8 deletions

View File

@ -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") {

View File

@ -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

View File

@ -1,7 +1,5 @@
executable("hello_world") {
sources = [
"hello_world.cc",
]
sources = [ "hello_world.cc" ]
deps = [
"//src/base",

View File

@ -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 += [