File tree Expand file tree Collapse file tree 3 files changed +26
-7
lines changed
Expand file tree Collapse file tree 3 files changed +26
-7
lines changed Original file line number Diff line number Diff line change 11add_rules (" mode.debug" , " mode.release" )
22
3- add_requires (" sdl2" )
4- add_requires (" sdl2_image" )
3+ add_requires (" sdl2" ,{ configs = { shared = false }} )
4+ add_requires (" sdl2_image" ,{ configs = { shared = false }} )
55add_requires (" ffmpeg" )
66
77target (" player" )
Original file line number Diff line number Diff line change 1- for _ , packagedir in ipairs (os.dirs (path.join (os.scriptdir (), " *" ))) do
2- local packagefile = path.join (packagedir , " xmake.lua" )
3- if os.isfile (packagefile ) then
4- includes (packagefile )
1+ local arch = get_config (" arch" )
2+ if arch == " xuantie" then
3+ local run_apps = {
4+ " busybox" ,
5+ " cpp" ,
6+ " hello" ,
7+ " shm_ping" ,
8+ " shm_pong" ,
9+ " smart-fetch" ,
10+ " zlib" ,
11+ }
12+ for _ , packagedir in ipairs (run_apps ) do
13+ local packagefile = path.join (path.join (os.scriptdir (), packagedir ), " xmake.lua" )
14+ if os.isfile (packagefile ) then
15+ includes (packagefile )
16+ end
17+ end
18+ else
19+ for _ , packagedir in ipairs (os.dirs (path.join (os.scriptdir (), " *" ))) do
20+ local packagefile = path.join (packagedir , " xmake.lua" )
21+ if os.isfile (packagefile ) then
22+ includes (packagefile )
23+ end
524 end
625end
Original file line number Diff line number Diff line change 6666 if package :config (" shared" ) then
6767 table.insert (configs , " --enable-shared" )
6868 end
69-
69+ table.insert ( configs , " --disable-doc " )
7070 local buildenvs = import (" package.tools.autoconf" ).buildenvs (package ,
7171 {ldflags = ldflags , packagedeps = packagedeps })
7272 import (" package.tools.autoconf" ).configure (package , configs , {envs = buildenvs })
You can’t perform that action at this time.
0 commit comments