EAStdC (#3)
Conan Packaging / Package assimp/6.0.5 (push) Successful in 1m59s
Conan Packaging / Package cli11/2.6.2 (push) Successful in 24s
Conan Packaging / Package flatbuffers/25.12.19-2026-02-06-03fffb2-bigfoot (push) Successful in 44s
Conan Packaging / Package glm/1.0.3 (push) Successful in 17s
Conan Packaging / Package lodepng/cci.20260210 (push) Successful in 18s
Conan Packaging / Package meshoptimizer/1.2 (push) Successful in 20s
Conan Packaging / Package eabase/01082025 (push) Successful in 17s
Conan Packaging / Package imgui/1.92.8-docking (push) Successful in 26s
Conan Packaging / Package pixelmatch-cpp17/1.0.3 (push) Successful in 23s
Conan Packaging / Package spirv-cross/1.4.341.0 (push) Successful in 54s
Conan Packaging / Package spirv-headers/1.4.341.0 (push) Successful in 17s
Conan Packaging / Package eaassert/25082026 (push) Successful in 18s
Conan Packaging / Package eastl/3.27.01 (push) Successful in 21s
Conan Packaging / Package spirv-tools/1.4.341.0 (push) Successful in 2m19s
Conan Packaging / Package vulkan-memory-allocator/3.3.0 (push) Successful in 19s
Conan Packaging / Package mimalloc/3.3.2 (push) Successful in 21s
Conan Packaging / Package mold/2.41.0 (push) Successful in 4m56s
Conan Packaging / Package rapidhash/3.0 (push) Successful in 16s
Conan Packaging / Package sqlite3/3.53.3 (push) Successful in 40s
Conan Packaging / Package stduuid/1.2.3 (push) Successful in 32s
Conan Packaging / Package unordered_dense/4.8.1 (push) Successful in 17s
Conan Packaging / Package vulkan-headers/1.4.341.0 (push) Successful in 17s
Conan Packaging / Package eathread/25082026 (push) Successful in 19s
Conan Packaging / Package vulkan-utility-libraries/1.4.341.0 (push) Successful in 22s
Conan Packaging / Package glslang/1.4.341.0 (push) Successful in 2m42s
Conan Packaging / Package eastdc/25082026 (push) Successful in 23s
Conan Packaging / Package vulkan-validationlayers/1.4.341.0 (push) Successful in 5m52s
Conan Packaging / Package shaderc/2026.1 (push) Successful in 3m7s

Reviewed-on: #3
Co-authored-by: Romain BOULLARD <romain.boullard@protonmail.com>
This commit was merged in pull request #3.
This commit is contained in:
2026-08-25 14:56:41 +00:00
committed by rboullard
parent bf41537222
commit fd8fd14429
23 changed files with 661 additions and 21 deletions
+9
View File
@@ -0,0 +1,9 @@
sources:
"25082026":
url: "https://github.com/electronicarts/EAAssert/archive/e5e181255de2e883dd1f987c78ccc42ac81d3bca.zip"
sha256: "72940e194f00466d23aac969b129819f9538aa716bfacfbc1d3a5d5ad235a5b3"
patches:
"25082026":
- patch_file: "patches/25082026-0001-use-conan.patch"
patch_description: "bump cmake_minimum_required past what CMake >= 4 accepts, drop the submodule-only CommonCppFlags include, use cci's EABase, add install definitions"
patch_type: "conan"
+81
View File
@@ -0,0 +1,81 @@
import os
from conan import ConanFile
from conan.tools.cmake import CMake, CMakeDeps, CMakeToolchain, cmake_layout
from conan.tools.files import apply_conandata_patches, copy, export_conandata_patches, get, rmdir
required_conan_version = ">=1.52.0"
class EAAssertConan(ConanFile):
name = "eaassert"
description = "EAAssert is a lightweight EA runtime assertion library."
topics = ("eastl", "assert")
license = "BSD-3-Clause"
url = "https://github.com/conan-io/conan-center-index"
homepage = "https://github.com/electronicarts/EAAssert"
package_type = "library"
settings = "os", "arch", "compiler", "build_type"
options = {
"shared": [True, False],
"fPIC": [True, False],
}
default_options = {
"shared": False,
"fPIC": True,
}
def export_sources(self):
export_conandata_patches(self)
def config_options(self):
if self.settings.os == "Windows":
del self.options.fPIC
def configure(self):
if self.options.shared:
self.options.rm_safe("fPIC")
def layout(self):
cmake_layout(self, src_folder="src")
def requirements(self):
self.requires(f"eabase/01082025@{self.user}/{self.channel}", transitive_headers=True)
def source(self):
get(self, **self.conan_data["sources"][self.version], strip_root=True)
def generate(self):
tc = CMakeToolchain(self)
tc.generate()
CMakeDeps(self).generate()
def build(self):
apply_conandata_patches(self)
cmake = CMake(self)
cmake.configure()
cmake.build()
def package(self):
copy(
self,
"LICENSE",
src=self.source_folder,
dst=os.path.join(self.package_folder, "licenses"),
)
cmake = CMake(self)
cmake.install()
rmdir(self, os.path.join(self.package_folder, "doc"))
def package_info(self):
self.cpp_info.libs = ["EAAssert"]
self.cpp_info.set_property("cmake_file_name", "EAAssert")
self.cpp_info.set_property("cmake_target_name", "EAAssert::EAAssert")
# TODO: to remove in conan v2 once cmake_find_package_* generators removed
self.cpp_info.filenames["cmake_find_package"] = "EAAssert"
self.cpp_info.filenames["cmake_find_package_multi"] = "EAAssert"
self.cpp_info.names["cmake_find_package"] = "EAAssert"
self.cpp_info.names["cmake_find_package_multi"] = "EAAssert"
@@ -0,0 +1,39 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a60892b..02619df 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,7 +1,7 @@
#-------------------------------------------------------------------------------------------
# Copyright (C) Electronic Arts Inc. All rights reserved.
#-------------------------------------------------------------------------------------------
-cmake_minimum_required(VERSION 3.1)
+cmake_minimum_required(VERSION 3.5)
project(EAAssert CXX)
#-------------------------------------------------------------------------------------------
@@ -13,7 +13,6 @@ option(EAASSERT_BUILD_TESTS "Enable generation of build files for tests" OFF)
# Compiler Flags
#-------------------------------------------------------------------------------------------
set (CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH};${CMAKE_CURRENT_SOURCE_DIR}/test/packages/EASTL/scripts/CMake")
-include(CommonCppFlags)
#-------------------------------------------------------------------------------------------
# Library definition
@@ -41,5 +40,16 @@ target_include_directories(EAAssert PUBLIC include)
#-------------------------------------------------------------------------------------------
# Package Dependencies
#-------------------------------------------------------------------------------------------
-target_link_libraries(EAAssert EABase)
+find_package(EABase REQUIRED CONFIG)
+target_link_libraries(EAAssert EABase::EABase)
+
+#-------------------------------------------------------------------------------------------
+# Installation
+#-------------------------------------------------------------------------------------------
+include(GNUInstallDirs)
+install(TARGETS EAAssert
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
+install(DIRECTORY include/EAAssert DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
+12
View File
@@ -0,0 +1,12 @@
cmake_minimum_required(VERSION 3.15)
project(test_package CXX)
find_package(EAAssert REQUIRED CONFIG)
add_executable(${PROJECT_NAME} test_package.cpp)
target_link_libraries(${PROJECT_NAME} EAAssert::EAAssert)
target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_14)
# Force the assert path on regardless of build_type - we're testing the failure-callback mechanism
# itself, not whether asserts happen to be enabled for this configuration.
target_compile_definitions(${PROJECT_NAME} PRIVATE EA_ASSERT_ENABLED=1)
+26
View File
@@ -0,0 +1,26 @@
from conan import ConanFile
from conan.tools.build import can_run
from conan.tools.cmake import cmake_layout, CMake
import os
class TestPackageConan(ConanFile):
settings = "os", "arch", "compiler", "build_type"
generators = "CMakeDeps", "CMakeToolchain", "VirtualRunEnv"
test_type = "explicit"
def requirements(self):
self.requires(self.tested_reference_str)
def layout(self):
cmake_layout(self)
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
def test(self):
if can_run(self):
bin_path = os.path.join(self.cpp.build.bindir, "test_package")
self.run(bin_path, env="conanrun")
@@ -0,0 +1,31 @@
#include <EAAssert/eaassert.h>
#include <cstdarg>
#include <cstdio>
#include <cstdlib>
namespace
{
bool gCallbackInvoked = false;
bool TestFailureCallback(const char*, const char*, int, const char*, const char*, va_list)
{
gCallbackInvoked = true;
return false; // Don't break into the debugger.
}
} // namespace
int main()
{
EA::Assert::SetFailureCallback(&TestFailureCallback);
EA_ASSERT(1 == 2); // Deliberately false, to exercise the failure callback.
if (!gCallbackInvoked)
{
std::fprintf(stderr, "EA_ASSERT did not invoke the failure callback\n");
return EXIT_FAILURE;
}
return EXIT_SUCCESS;
}
+3
View File
@@ -0,0 +1,3 @@
versions:
"25082026":
folder: "all"