-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmrbgem.rake
More file actions
30 lines (24 loc) · 912 Bytes
/
Copy pathmrbgem.rake
File metadata and controls
30 lines (24 loc) · 912 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
MRuby::Gem::Specification.new('mruby-gpu') do |spec|
spec.license = 'MIT'
spec.authors = 'Yuji Teshima'
spec.summary = 'GPU compute via Vulkan for mruby (+ Camera / FaceDetector / Display)'
# Vulkan
spec.linker.libraries << 'vulkan'
# NCNN (face detection)
spec.linker.libraries << 'ncnn'
spec.linker.libraries << 'glslang'
spec.linker.libraries << 'SPIRV'
spec.linker.libraries << 'MachineIndependent'
spec.linker.libraries << 'GenericCodeGen'
spec.linker.libraries << 'glslang-default-resource-limits'
spec.linker.library_paths << '/usr/local/lib'
# OpenMP (required by NCNN)
spec.linker.flags_after_libraries << '-fopenmp'
# SDL2 (Display class)
spec.linker.libraries << 'SDL2'
# Headers
spec.cc.include_paths << '/usr/local/include/ncnn'
spec.cxx.include_paths << '/usr/local/include/ncnn'
# C++ standard required by NCNN
spec.cxx.flags << '-std=c++17'
end