Skip to content

Commit 0456215

Browse files
authored
Merge pull request #7 from RISC-OS-Community/chore/sync-from-template
Chore/sync from template
2 parents 3de0d8f + db93952 commit 0456215

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

.gitattributes

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@ doc/** linguist-documentation
3030
src/**/c/* text diff=c linguist-language=c
3131
src/**/h/* text diff=c linguist-language=c
3232
src/**/c++/* text diff=cpp linguist-language=cpp
33-
src/**/cpp/* text diff=cpp linguist-language=cpp
33+
src/**/cpp/* text diff=cpp linguist-language=cpp
34+
src/**/hpp/* text diff=cpp linguist-language=cpp
35+
src/**/hxx/* text diff=cpp linguist-language=cpp
36+
src/**/cxx/* text diff=cpp linguist-language=cpp
37+
src/**/h++/* text diff=cpp linguist-language=cpp
3438
src/**/bas/* text diff=bbcbasic linguist-language=bbcbasic
3539
src/**/s/* text diff=armasm linguist-language=assembly
3640
src/**/Hdr/* text diff=armasm linguist-language=assembly

.rocog/scripts/ux-src

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ function check_path()
102102
[ "${last_dir}" == "c++" ] || [ "${last_dir}" == "C++" ] || \
103103
[ "${last_dir}" == "hpp" ] || [ "${last_dir}" == "HPP" ] || \
104104
[ "${last_dir}" == "hxx" ] || [ "${last_dir}" == "HXX" ] || \
105+
[ "${last_dir}" == "h++" ] || [ "${last_dir}" == "H++" ] || \
105106
[ "${last_dir}" == "s" ] || [ "${last_dir}" == "S" ] || \
106107
[ "${last_dir}" == "Hdr" ] || [ "${last_dir}" == "hdr" ] || \
107108
[ "${last_dir}" == "fth" ] || [ "${last_dir}" == "FTH" ] || \
@@ -141,6 +142,7 @@ function find_files_and_link() {
141142
link_files "${dir_type}" "${src_dir}" "${dst_dir}" "HPP" "hpp"
142143
link_files "${dir_type}" "${src_dir}" "${dst_dir}" "hxx" "hxx"
143144
link_files "${dir_type}" "${src_dir}" "${dst_dir}" "HXX" "hxx"
145+
link_files "${dir_type}" "${src_dir}" "${dst_dir}" "h++" "hpp"
144146

145147
# Link C header files (if any):
146148
link_files "${dir_type}" "${src_dir}" "${dst_dir}" "h" "h"

src/.gitkeep

Whitespace-only changes.

src/MkGCC.sh

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
# This is a special file that will be used to control automated code
44
# analysis tools such as SonarQube, Coverity, etc. on GitHub.
55
# This file is not meant to be executed by humans, but by automated
6-
# tools.
6+
# tools.
77
# If you want to build the project, please use the MkGCC (note no .sh)
88
# script instead or MkDDE on RISC OS.
99

10-
# MAKE SURE this file is calling your MakefileGCC with the correct
10+
# MAKE SURE this file is calling your MakefileGCC with the correct
1111
# target and make sure your MakefileGCC uses the variable OS to
12-
# determine the target OS.
12+
# determine the target OS.
1313

1414
current_dir="$1"
1515
if [ "$current_dir" == "" ]; then
@@ -20,9 +20,5 @@ cd ${current_dir}
2020
# Display MakefielGCC
2121
cat ${current_dir}/MakeFileGCC
2222

23-
# Clean the artifacts
24-
rm ./*.o
25-
2623
# Make the artifacts
27-
make all OS=`uname -s` -f ${current_dir}/MakefileGCC --debug
28-
24+
make static OS=`uname -s` -f ${current_dir}/MakefileGCC

0 commit comments

Comments
 (0)