Skip to content

Commit d85406f

Browse files
committed
fixed:build error on mac
added:start test
1 parent c44ece7 commit d85406f

File tree

12 files changed

+87
-23
lines changed

12 files changed

+87
-23
lines changed

.github/workflows/linuxbuild.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,8 @@ jobs:
5757
make RELEASE=1
5858
make FLAGS=InstallAll
5959
make FLAGS=CleanAll
60-
cd ..
60+
cd ..
61+
- name: test
62+
run: |
63+
cd XEngine_Release
64+
./XEngine_MQServiceApp -t

.github/workflows/macbuild.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,9 @@ jobs:
1515
matrix:
1616
include:
1717
- os: macos-13
18-
- os: macos-14
1918
runs-on: ${{ matrix.os }}
20-
19+
2120
steps:
22-
# 检出您的主仓库代码
2321
- name: Checkout main repository code
2422
uses: actions/checkout@v4
2523
with:
@@ -48,14 +46,19 @@ jobs:
4846
./XEngine_LINEnv.sh -i 3
4947
cd ..
5048
#编译
51-
- name: make
49+
- name: make debug
5250
run: |
5351
cd XEngine_Source
5452
make PLATFORM=mac
5553
make PLATFORM=mac FLAGS=InstallAll
5654
make PLATFORM=mac FLAGS=CleanAll
57-
55+
- name: make release
56+
run: |
57+
cd XEngine_Source
5858
make PLATFORM=mac RELEASE=1
5959
make PLATFORM=mac FLAGS=InstallAll
6060
make PLATFORM=mac FLAGS=CleanAll
61-
cd ..
61+
- name: test
62+
run: |
63+
cd XEngine_Release
64+
./XEngine_MQServiceApp -t

XEngine_Source/AuthorizeModule_CDKey/Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,13 @@ ifeq ($(RELEASE),1)
1616
FLAGS = -c
1717
DEBUG =
1818
else
19-
FLAGS = -c -lc_p
20-
DEBUG = -g -pg
19+
ifeq ($(PLATFORM),mac)
20+
FLAGS = -c
21+
DEBUG = -g
22+
else
23+
FLAGS = -c -lc_p
24+
DEBUG = -g -pg
25+
endif
2126
endif
2227

2328
ifeq ($(UNICODE),1)

XEngine_Source/AuthorizeModule_Client/Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,13 @@ ifeq ($(RELEASE),1)
1616
FLAGS = -c
1717
DEBUG =
1818
else
19-
FLAGS = -c -lc_p
20-
DEBUG = -g -pg
19+
ifeq ($(PLATFORM),mac)
20+
FLAGS = -c
21+
DEBUG = -g
22+
else
23+
FLAGS = -c -lc_p
24+
DEBUG = -g -pg
25+
endif
2126
endif
2227

2328
ifeq ($(UNICODE),1)

XEngine_Source/AuthorizeModule_Configure/Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,13 @@ ifeq ($(RELEASE),1)
1616
FLAGS = -c
1717
DEBUG =
1818
else
19-
FLAGS = -c -lc_p
20-
DEBUG = -g -pg
19+
ifeq ($(PLATFORM),mac)
20+
FLAGS = -c
21+
DEBUG = -g
22+
else
23+
FLAGS = -c -lc_p
24+
DEBUG = -g -pg
25+
endif
2126
endif
2227

2328
ifeq ($(UNICODE),1)

XEngine_Source/AuthorizeModule_Database/Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,13 @@ ifeq ($(RELEASE),1)
1616
FLAGS = -c
1717
DEBUG =
1818
else
19-
FLAGS = -c -lc_p
20-
DEBUG = -g -pg
19+
ifeq ($(PLATFORM),mac)
20+
FLAGS = -c
21+
DEBUG = -g
22+
else
23+
FLAGS = -c -lc_p
24+
DEBUG = -g -pg
25+
endif
2126
endif
2227

2328
ifeq ($(UNICODE),1)

XEngine_Source/AuthorizeModule_Help/Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,13 @@ ifeq ($(RELEASE),1)
1616
FLAGS = -c
1717
DEBUG =
1818
else
19-
FLAGS = -c -lc_p
20-
DEBUG = -g -pg
19+
ifeq ($(PLATFORM),mac)
20+
FLAGS = -c
21+
DEBUG = -g
22+
else
23+
FLAGS = -c -lc_p
24+
DEBUG = -g -pg
25+
endif
2126
endif
2227

2328
ifeq ($(UNICODE),1)

XEngine_Source/AuthorizeModule_Protocol/Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,13 @@ ifeq ($(RELEASE),1)
1616
FLAGS = -c
1717
DEBUG =
1818
else
19-
FLAGS = -c -lc_p
20-
DEBUG = -g -pg
19+
ifeq ($(PLATFORM),mac)
20+
FLAGS = -c
21+
DEBUG = -g
22+
else
23+
FLAGS = -c -lc_p
24+
DEBUG = -g -pg
25+
endif
2126
endif
2227

2328
ifeq ($(UNICODE),1)

XEngine_Source/AuthorizeModule_Session/Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,13 @@ ifeq ($(RELEASE),1)
1616
FLAGS = -c
1717
DEBUG =
1818
else
19-
FLAGS = -c -lc_p
20-
DEBUG = -g -pg
19+
ifeq ($(PLATFORM),mac)
20+
FLAGS = -c
21+
DEBUG = -g
22+
else
23+
FLAGS = -c -lc_p
24+
DEBUG = -g -pg
25+
endif
2126
endif
2227

2328
ifeq ($(UNICODE),1)

XEngine_Source/XEngine_APPService/XEngine_AuthorizeService/Authorize_Config.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ bool Authorize_Service_Parament(int argc, char** argv)
3333
{
3434
st_AuthConfig.bDeamon = _ttxoi(argv[i + 1]);
3535
}
36+
else if (0 == _tcsxcmp("-t", argv[i]))
37+
{
38+
bIsTest = true;
39+
}
3640
}
3741

3842
return true;

0 commit comments

Comments
 (0)