concurrentqueue: Restore concurrentqueue/concurrentqueue.h include (#3016)

095e769f1f reworked concurrentqueue which no longer has `concurrentqueue/concurrentqueue.h` includes, this breaks compilation for existing project using it.

This commit adds a temporary include allowing existing projects to compile, but prints a compiler message
pull/3020/head
Jérôme Leclercq 11 months ago committed by GitHub
parent c292580ee1
commit 5e16d18d2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      packages/c/concurrentqueue/xmake.lua

@ -26,6 +26,13 @@ package("concurrentqueue")
table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
import("package.tools.cmake").install(package, configs)
io.writefile(path.join(package:installdir("include"), "concurrentqueue", "concurrentqueue.h"), [[
#pragma once
#pragma message please update include <concurrentqueue/concurrentqueue.h> to <concurrentqueue.h>
#include "moodycamel/concurrentqueue.h"
]])
if package:config("c_api") then
io.writefile("xmake.lua", [[
add_rules("mode.debug", "mode.release")

Loading…
Cancel
Save