代码拉取完成,页面将自动刷新
同步操作将从 kalimdorsummer/protothreads 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
set_config("cc", "gcc")
set_config("ld", "gcc")
set_config("debugger", "gdb")
set_config("buildir", "obj")
set_config("cflags", "-O0 -g")
-- define target
target("all_test")
-- set_toolset("cc", "gcc")
-- set_toolset("ld", "gcc")
-- set kind
set_kind("binary")
-- add files
add_files("main.c")
add_files("aaa_sec_fringe/*.c")
add_files("hello/*.c")
add_files("overflow_test/*.c")
add_files("array_func_add_test/*.c")
add_files("protothreads/components/*.c")
add_files("protothreads/drivers/*.c")
add_files("pt_god_schedule_test/*.c")
add_files("pt_completion_test/*.c")
add_files("pt_drivers_test/*.c")
add_files("pt_event_set_test/*.c")
add_files("pt_pipe_test/*.c")
add_files("pt_ringbuf_test/*.c")
add_files("pt_sem_test/*.c")
add_files("pt_soft_timer_thread_test/*.c")
add_files("pt_softirq_test/*.c")
add_files("pt_tasklet_test/*.c")
add_files("pt_test_mailbox/*.c")
add_files("pt_test_msgq/*.c")
add_files("pt_workque_test/*.c")
add_files("protothreads/*.c")
add_files("zzz_sec_fringe/*.c")
-- add headers
add_includedirs("protothreads")
add_includedirs("protothreads/components")
add_includedirs("protothreads/drivers")
add_links("winmm")
--
-- If you want to known more usage about xmake, please see https://xmake.io
--
-- ## FAQ
--
-- You can enter the project directory firstly before building project.
--
-- $ cd projectdir
--
-- 1. How to build project?
--
-- $ xmake
--
-- 2. How to configure project?
--
-- $ xmake f -p [macosx|linux|iphoneos ..] -a [x86_64|i386|arm64 ..] -m [debug|release]
--
-- 3. Where is the build output directory?
--
-- The default output directory is `./build` and you can configure the output directory.
--
-- $ xmake f -o outputdir
-- $ xmake
--
-- 4. How to run and debug target after building project?
--
-- $ xmake run [targetname]
-- $ xmake run -d [targetname]
--
-- 5. How to install target to the system directory or other output directory?
--
-- $ xmake install
-- $ xmake install -o installdir
--
-- 6. Add some frequently-used compilation flags in xmake.lua
--
-- @code
-- -- add debug and release modes
-- add_rules("mode.debug", "mode.release")
--
-- -- add macro defination
-- add_defines("NDEBUG", "_GNU_SOURCE=1")
--
-- -- set warning all as error
-- set_warnings("all", "error")
--
-- -- set language: c99, c++11
-- set_languages("c99", "c++11")
--
-- -- set optimization: none, faster, fastest, smallest
-- set_optimize("fastest")
--
-- -- add include search directories
-- add_includedirs("/usr/include", "/usr/local/include")
--
-- -- add link libraries and search directories
-- add_links("tbox")
-- add_linkdirs("/usr/local/lib", "/usr/lib")
--
-- -- add system link libraries
-- add_syslinks("z", "pthread")
--
-- -- add compilation and link flags
-- add_cxflags("-stdnolib", "-fno-strict-aliasing")
-- add_ldflags("-L/usr/local/lib", "-lpthread", {force = true})
--
-- @endcode
--
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。