mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-09-23 11:18:07 +00:00
fix build errors
This commit is contained in:
@@ -2,10 +2,6 @@ exclude_sources = [
|
||||
' ! -path "*/Common/*"', # added by platform_sources
|
||||
' ! -path "*/Linux/*"', # added by platform_sources
|
||||
' ! -path "*/Windows64/*"', # added by platform_sources
|
||||
' ! -name "SurvivalMode.cpp"',
|
||||
' ! -name "CreativeMode.cpp"',
|
||||
' ! -name "GameMode.cpp"',
|
||||
' ! -name "DemoMode.cpp"',
|
||||
]
|
||||
|
||||
# all sources except ./Platform/*
|
||||
@@ -64,43 +60,14 @@ client_dependencies = [
|
||||
console_helpers_dep,
|
||||
]
|
||||
|
||||
if get_option('enable_vsync')
|
||||
global_cpp_defs += ['-DENABLE_VSYNC']
|
||||
endif
|
||||
|
||||
if get_option('classic_panorama')
|
||||
global_cpp_defs += '-DCLASSIC_PANORAMA'
|
||||
endif
|
||||
|
||||
if get_option('enable_frame_profiler')
|
||||
global_cpp_defs += ['-DENABLE_FRAME_PROFILER']
|
||||
endif
|
||||
|
||||
if get_option('ui_backend') == 'shiggy'
|
||||
shiggy_dep = dependency(
|
||||
'shiggy',
|
||||
fallback: ['shiggy', 'shiggy_dep'],
|
||||
)
|
||||
|
||||
global_cpp_defs += ['-D_ENABLEIGGY']
|
||||
client_dependencies += shiggy_dep
|
||||
endif
|
||||
|
||||
if get_option('ui_backend') == 'java'
|
||||
global_cpp_defs += '-DENABLE_JAVA_GUIS'
|
||||
endif
|
||||
|
||||
occlusion_mode = get_option('occlusion_culling')
|
||||
if occlusion_mode == 'off'
|
||||
global_cpp_defs += ['-DOCCLUSION_MODE_NONE']
|
||||
elif occlusion_mode == 'frustum'
|
||||
global_cpp_defs += ['-DOCCLUSION_MODE_FRUSTUM']
|
||||
elif occlusion_mode == 'bfs'
|
||||
global_cpp_defs += ['-DOCCLUSION_MODE_BFS', '-DUSE_OCCLUSION_CULLING']
|
||||
elif occlusion_mode == 'hardware'
|
||||
global_cpp_defs += ['-DOCCLUSION_MODE_HARDWARE', '-DUSE_OCCLUSION_CULLING']
|
||||
endif
|
||||
|
||||
platform_services_src = files('../platform/PlatformServices.cpp')
|
||||
|
||||
client = executable(
|
||||
|
||||
@@ -12,6 +12,10 @@ exclude_sources = [
|
||||
'! -name ZoneFile.cpp',
|
||||
'! -name ZoneIo.cpp',
|
||||
'! -name LevelConflictException.cpp',
|
||||
'! -name "SurvivalMode.cpp"',
|
||||
'! -name "CreativeMode.cpp"',
|
||||
'! -name "GameMode.cpp"',
|
||||
'! -name "DemoMode.cpp"',
|
||||
]
|
||||
|
||||
# GET IT ALLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL
|
||||
@@ -25,6 +29,21 @@ minecraft_sources = run_command(
|
||||
check : true,
|
||||
).stdout().strip().split('\n')
|
||||
|
||||
occlusion_mode = get_option('occlusion_culling')
|
||||
if occlusion_mode == 'off'
|
||||
global_cpp_defs += ['-DOCCLUSION_MODE_NONE']
|
||||
elif occlusion_mode == 'frustum'
|
||||
global_cpp_defs += ['-DOCCLUSION_MODE_FRUSTUM']
|
||||
elif occlusion_mode == 'bfs'
|
||||
global_cpp_defs += ['-DOCCLUSION_MODE_BFS', '-DUSE_OCCLUSION_CULLING']
|
||||
elif occlusion_mode == 'hardware'
|
||||
global_cpp_defs += ['-DOCCLUSION_MODE_HARDWARE', '-DUSE_OCCLUSION_CULLING']
|
||||
endif
|
||||
|
||||
if get_option('ui_backend') == 'java'
|
||||
global_cpp_defs += '-DENABLE_JAVA_GUIS'
|
||||
endif
|
||||
|
||||
lib_minecraft = static_library('minecraft',
|
||||
minecraft_sources,
|
||||
dependencies : [
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
|
||||
class Minecraft;
|
||||
class Level;
|
||||
class Player;
|
||||
|
||||
Reference in New Issue
Block a user