Commit 22d1d3af authored by Lyude Paul's avatar Lyude Paul

Move build system over to meson

To make things more consistent across the various panfrost projects
parent 9f84c9a0
[meson.build]
indent_style = space
indent_size = 4
cmake_minimum_required(VERSION 3.5)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/Binaries)
add_subdirectory(Source/)
project(Disassembler)
set(SRCS Main.cpp BifrostDisasm.cpp t6xx/disassemble.c t6xx/hfloat.c)
add_executable(disasm ${SRCS})
srcs = [
'Main.cpp',
'BifrostDisasm.cpp',
't6xx/disassemble.c',
't6xx/hfloat.c',
]
executable(
'disasm',
srcs,
install: true,
)
project(
'ShaderProgramDisassembler',
['c', 'cpp'],
default_options: [
'c_std=gnu11',
'cpp_std=c++14',
]
)
if get_option('c_std') != 'gnu11'
error('This project requires c_std to be in gnu11 mode')
endif
if get_option('cpp_std') != 'c++14'
error('This project requires cpp_std to be in c++14 mode')
endif
subdir('Source')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment