Skip to content

Commit

Permalink
Add salsa-ci.yml, gbp.conf. Update 0002-CMakeLists.txt.patch
Browse files Browse the repository at this point in the history
  • Loading branch information
tx00100xt committed Mar 8, 2024
1 parent 095531a commit 8374214
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 0 deletions.
3 changes: 3 additions & 0 deletions debian/gbp.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[DEFAULT]
pristine-tar = True
sign-tags = True
42 changes: 42 additions & 0 deletions debian/patches/0002-CMakeLists.txt.patch
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,18 @@ Forwarded: not-needed
message(STATUS "Installed libraries dir: ${CMAKE_INSTALL_LIBDIR}")

## ** RAKE! start compiler specific flags section **
@@ -355,6 +355,11 @@
## ** RAKE! clean up for SeriousEngine use. Also **
## ** RAKE! need to make this pandora safe. **
# compiler specific flags
+if((CMAKE_SYSTEM_PROCESSOR MATCHES "i386|i586|i686") AND (CMAKE_SIZEOF_VOID_P EQUAL 4))
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mmmx")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmmx")
+endif()
+
if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "AppleClang")
# This section and the like are for flags/defines that can be shared between
# c and c++ compile options
@@ -393,9 +366,9 @@
add_compile_options(-mpowerpc64)
else()
Expand All @@ -70,6 +82,15 @@ Forwarded: not-needed
endif()
endif()
endif()
@@ -624,7 +629,7 @@
if(NOT ECC)
add_parser_and_scanner("Ecc/Parser" "Ecc/Scanner")
add_executable(ecc Ecc/Main.cpp Ecc/Parser.cpp Ecc/Parser.h Ecc/Scanner.cpp)
- set(ECC "ecc")
+ set(ECC "${CMAKE_CURRENT_BINARY_DIR}/ecc")
endif()

macro(entity _NAME)
@@ -1472,56 +1445,8 @@
)
endif()
Expand Down Expand Up @@ -338,6 +359,18 @@ Forwarded: not-needed
message(STATUS "Installed libraries dir: ${CMAKE_INSTALL_LIBDIR}")

## ** RAKE! start compiler specific flags section **
@@ -355,6 +355,11 @@
## ** RAKE! clean up for SeriousEngine use. Also **
## ** RAKE! need to make this pandora safe. **
# compiler specific flags
+if((CMAKE_SYSTEM_PROCESSOR MATCHES "i386|i586|i686") AND (CMAKE_SIZEOF_VOID_P EQUAL 4))
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mmmx")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmmx")
+endif()
+
if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "AppleClang")
# This section and the like are for flags/defines that can be shared between
# c and c++ compile options
@@ -393,9 +366,9 @@
add_compile_options(-mpowerpc64)
else()
Expand All @@ -350,6 +383,15 @@ Forwarded: not-needed
endif()
endif()
endif()
@@ -624,7 +629,7 @@
if(NOT ECC)
add_parser_and_scanner("Ecc/Parser" "Ecc/Scanner")
add_executable(ecc-se Ecc/Main.cpp Ecc/Parser.cpp Ecc/Parser.h Ecc/Scanner.cpp)
- set(ECC-SE "ecc-se")
+ set(ECC-SE "${CMAKE_CURRENT_BINARY_DIR}/ecc-se")
endif()

macro(entity _NAME)
@@ -1472,56 +1445,8 @@
)
endif()
Expand Down
16 changes: 16 additions & 0 deletions debian/salsa-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
include:
- https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml
- https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/pipeline-jobs.yml

# Disable tests that currently make no sense for this repo
variables:
# SALSA_CI_DISABLE_APTLY: 1
# SALSA_CI_DISABLE_AUTOPKGTEST: 1
# SALSA_CI_DISABLE_BLHC: 1
# SALSA_CI_DISABLE_LINTIAN: 1
# SALSA_CI_DISABLE_PIUPARTS: 1
SALSA_CI_DISABLE_REPROTEST: 1
# SALSA_CI_DISABLE_BUILD_PACKAGE_ALL: 1
# SALSA_CI_DISABLE_BUILD_PACKAGE_ANY: 1

0 comments on commit 8374214

Please sign in to comment.