File tree Expand file tree Collapse file tree 4 files changed +73
-0
lines changed Expand file tree Collapse file tree 4 files changed +73
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ target_sources(ScriptX PRIVATE
2
2
${CMAKE_CURRENT_LIST_DIR} /PyEngine.cc
3
3
${CMAKE_CURRENT_LIST_DIR} /PyEngine.h
4
4
${CMAKE_CURRENT_LIST_DIR} /PyException.cc
5
+ ${CMAKE_CURRENT_LIST_DIR} /PyHelper.h
6
+ ${CMAKE_CURRENT_LIST_DIR} /PyHelper.hpp
7
+ ${CMAKE_CURRENT_LIST_DIR} /PyHelper.cc
5
8
${CMAKE_CURRENT_LIST_DIR} /PyLocalReference.cc
6
9
${CMAKE_CURRENT_LIST_DIR} /PyNative.cc
7
10
${CMAKE_CURRENT_LIST_DIR} /PyNative.hpp
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Tencent is pleased to support the open source community by making ScriptX available.
3
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+
18
+ #include " PyHelper.hpp"
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Tencent is pleased to support the open source community by making ScriptX available.
3
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+
18
+ #pragma once
19
+
20
+ #include " ../../src/foundation.h"
21
+
22
+ // docs: https://docs.python.org/3/c-api/index.html
23
+
24
+ SCRIPTX_BEGIN_INCLUDE_LIBRARY
25
+ #ifndef PY_SSIZE_T_CLEAN
26
+ #define PY_SSIZE_T_CLEAN
27
+ #endif
28
+ #include < Python.h>
29
+ SCRIPTX_END_INCLUDE_LIBRARY
30
+
31
+ namespace script ::py_backend {}
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Tencent is pleased to support the open source community by making ScriptX available.
3
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+
18
+ #pragma once
19
+ #include " PyHelper.h"
20
+
21
+ namespace script ::py_backend {}
You can’t perform that action at this time.
0 commit comments