瀏覽代碼

Merge pull request #593 from jubalh/update_builder_example

Update Builder example
pull/597/head
Ray 7 年之前
committed by GitHub
父節點
當前提交
78c8774685
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 3 個檔案被更改,包括 2 行新增10 行删除
  1. +0
    -3
      projects/Builder/README.md
  2. +1
    -3
      projects/Builder/examples/meson.build
  3. +1
    -4
      projects/Builder/meson.build

+ 0
- 3
projects/Builder/README.md 查看文件

@ -21,6 +21,3 @@ In the provided file we assume that the build file is located at the root folder
Check out the `examples` directory for a simple example on how to use this template. Check out the `examples` directory for a simple example on how to use this template.
You can also look at [raymario](https://github.com/jubalh/raymario) for a slightly more complex example which also installs resource files. You can also look at [raymario](https://github.com/jubalh/raymario) for a slightly more complex example which also installs resource files.
# Notice
The files provided link against glfw3 and openAL because the latest stable version of raylib is version 1.8, which still needs this. For later versions these two dependencies are not necessary anymore.

+ 1
- 3
projects/Builder/examples/meson.build 查看文件

@ -9,9 +9,7 @@ project('core_basic_window', 'c', version: '1.0',
cc = meson.get_compiler('c') cc = meson.get_compiler('c')
# Find dependencies # Find dependencies
glfw_dep = dependency('glfw3')
gl_dep = dependency('gl') gl_dep = dependency('gl')
openal_dep = dependency('openal')
m_dep = cc.find_library('m', required : false) m_dep = cc.find_library('m', required : false)
raylib_dep = cc.find_library('raylib', required : false) raylib_dep = cc.find_library('raylib', required : false)
@ -23,5 +21,5 @@ source_c = [
# Build executable # Build executable
core_basic_window = executable('core_basic_window', core_basic_window = executable('core_basic_window',
source_c, source_c,
dependencies : [ raylib_dep, glfw_dep, gl_dep, openal_dep, m_dep ],
dependencies : [ raylib_dep, gl_dep, m_dep ],
install : true) install : true)

+ 1
- 4
projects/Builder/meson.build 查看文件

@ -9,10 +9,7 @@ project('projectname', 'c', version: '1.0',
cc = meson.get_compiler('c') cc = meson.get_compiler('c')
# Find dependencies # Find dependencies
# glfw3 and openal are not needed for raylib > 1.8.0
glfw_dep = dependency('glfw3')
gl_dep = dependency('gl') gl_dep = dependency('gl')
openal_dep = dependency('openal')
m_dep = cc.find_library('m', required : false) m_dep = cc.find_library('m', required : false)
raylib_dep = cc.find_library('raylib', required : false) raylib_dep = cc.find_library('raylib', required : false)
@ -24,5 +21,5 @@ source_c = [
# Build executable # Build executable
projectname = executable('projectname', projectname = executable('projectname',
source_c, source_c,
dependencies : [ raylib_dep, glfw_dep, gl_dep, openal_dep, m_dep ],
dependencies : [ raylib_dep, gl_dep, m_dep ],
install : true) install : true)

Loading…
取消
儲存