Compare commits
No commits in common. "V1.2.0" and "master" have entirely different histories.
|
@ -9,8 +9,3 @@
|
||||||
/extlib/OTB
|
/extlib/OTB
|
||||||
/extlib/lampcae
|
/extlib/lampcae
|
||||||
/extlib/Python
|
/extlib/Python
|
||||||
/extlib/qwt
|
|
||||||
/extlib/Python37
|
|
||||||
/extlib/WindowsKits
|
|
||||||
/extlib/Python
|
|
||||||
/extlib
|
|
|
@ -2,7 +2,7 @@
|
||||||
<module classpath="CMake" type="CPP_MODULE" version="4">
|
<module classpath="CMake" type="CPP_MODULE" version="4">
|
||||||
<component name="FacetManager">
|
<component name="FacetManager">
|
||||||
<facet type="Python" name="Python facet">
|
<facet type="Python" name="Python facet">
|
||||||
<configuration sdkName="Python 3.11 (lampcae)" />
|
<configuration sdkName="Python 3.7 (FastCAE)" />
|
||||||
</facet>
|
</facet>
|
||||||
</component>
|
</component>
|
||||||
</module>
|
</module>
|
|
@ -1,12 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<module version="4">
|
|
||||||
<component name="FacetManager">
|
|
||||||
<facet type="Python" name="Python facet">
|
|
||||||
<configuration sdkName="Python 3.11 (FastCAE)" />
|
|
||||||
</facet>
|
|
||||||
</component>
|
|
||||||
<component name="NewModuleRootManager">
|
|
||||||
<orderEntry type="sourceFolder" forTests="false" />
|
|
||||||
<orderEntry type="library" name="Python 3.11 (FastCAE) interpreter library" level="application" />
|
|
||||||
</component>
|
|
||||||
</module>
|
|
|
@ -7,16 +7,16 @@
|
||||||
<entry key="Debug">
|
<entry key="Debug">
|
||||||
<value>
|
<value>
|
||||||
<PerProfileState>
|
<PerProfileState>
|
||||||
<option name="myQmlPath" value="$PROJECT_DIR$/../../../vcpkg/installed/x64-windows/qml" />
|
<option name="myQmlPath" value="C:/Qt/5.15.2/msvc2019_64/qml" />
|
||||||
<option name="myQtBinPath" value="$PROJECT_DIR$/../../../vcpkg/installed/x64-windows/tools/qt5/bin" />
|
<option name="myQtBinPath" value="C:/Qt/5.15.2/msvc2019_64/bin" />
|
||||||
</PerProfileState>
|
</PerProfileState>
|
||||||
</value>
|
</value>
|
||||||
</entry>
|
</entry>
|
||||||
<entry key="Release">
|
<entry key="Release">
|
||||||
<value>
|
<value>
|
||||||
<PerProfileState>
|
<PerProfileState>
|
||||||
<option name="myQmlPath" value="$PROJECT_DIR$/../../../vcpkg/installed/x64-windows/qml" />
|
<option name="myQmlPath" value="C:/Qt/5.15.2/msvc2019_64/qml" />
|
||||||
<option name="myQtBinPath" value="$PROJECT_DIR$/../../../vcpkg/installed/x64-windows/tools/qt5/bin" />
|
<option name="myQtBinPath" value="C:/Qt/5.15.2/msvc2019_64/bin" />
|
||||||
</PerProfileState>
|
</PerProfileState>
|
||||||
</value>
|
</value>
|
||||||
</entry>
|
</entry>
|
||||||
|
|
|
@ -1,11 +1,7 @@
|
||||||
<component name="ProjectCodeStyleConfiguration">
|
<component name="ProjectCodeStyleConfiguration">
|
||||||
<code_scheme name="Project" version="173">
|
<code_scheme name="Project" version="173">
|
||||||
<option name="RIGHT_MARGIN" value="1000" />
|
|
||||||
<clangFormatSettings>
|
<clangFormatSettings>
|
||||||
<option name="ENABLED" value="true" />
|
<option name="ENABLED" value="true" />
|
||||||
</clangFormatSettings>
|
</clangFormatSettings>
|
||||||
<codeStyleSettings language="ObjectiveC">
|
|
||||||
<option name="RIGHT_MARGIN" value="1000" />
|
|
||||||
</codeStyleSettings>
|
|
||||||
</code_scheme>
|
</code_scheme>
|
||||||
</component>
|
</component>
|
|
@ -3,15 +3,5 @@
|
||||||
<component name="Black">
|
<component name="Black">
|
||||||
<option name="sdkName" value="Python 3.7 (FastCAE)" />
|
<option name="sdkName" value="Python 3.7 (FastCAE)" />
|
||||||
</component>
|
</component>
|
||||||
<component name="CMakePythonSetting">
|
|
||||||
<option name="pythonIntegrationState" value="YES" />
|
|
||||||
</component>
|
|
||||||
<component name="CMakeWorkspace" PROJECT_DIR="$PROJECT_DIR$" />
|
<component name="CMakeWorkspace" PROJECT_DIR="$PROJECT_DIR$" />
|
||||||
<component name="CidrRootsConfiguration">
|
|
||||||
<excludeRoots>
|
|
||||||
<file path="$PROJECT_DIR$/extlib" />
|
|
||||||
<file path="$PROJECT_DIR$/src/PluginWBFZExchangePlugin/SqliteDBProcess/src/translations" />
|
|
||||||
<file path="$PROJECT_DIR$/venv" />
|
|
||||||
</excludeRoots>
|
|
||||||
</component>
|
|
||||||
</project>
|
</project>
|
|
@ -2,5 +2,6 @@
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="VcsDirectoryMappings">
|
<component name="VcsDirectoryMappings">
|
||||||
<mapping directory="" vcs="Git" />
|
<mapping directory="" vcs="Git" />
|
||||||
|
<mapping directory="$PROJECT_DIR$/extlib" vcs="Git" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
|
@ -19,8 +19,7 @@ set(PROJECT_VERSION_PATCH 0)
|
||||||
# 编译系统设置
|
# 编译系统设置
|
||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
# c++语言标准
|
# c++语言标准
|
||||||
#set(CMAKE_CXX_STANDARD 11)
|
set(CMAKE_CXX_STANDARD 11)
|
||||||
set(CMAKE_CXX_STANDARD 17)
|
|
||||||
# 指定是否使用编译器特定的扩展
|
# 指定是否使用编译器特定的扩展
|
||||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||||
# 是否强制要求C++标准为${CMAKE_CXX_STANDARD},如果为OFF则可能使用旧的标准
|
# 是否强制要求C++标准为${CMAKE_CXX_STANDARD},如果为OFF则可能使用旧的标准
|
||||||
|
@ -31,25 +30,6 @@ set(CMAKE_AUTOMOC ON)
|
||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
set(CMAKE_AUTORCC ON)
|
set(CMAKE_AUTORCC ON)
|
||||||
|
|
||||||
#if(MSVC)
|
|
||||||
## add_definitions(-DPCL_NO_PRECOMPILE)
|
|
||||||
# # 如果是 Visual Studio 编译器
|
|
||||||
# add_compile_options(/arch:AVX) # 启用 AVX 指令集
|
|
||||||
# # 启用 SSE2
|
|
||||||
## add_compile_options(/arch:SSE)
|
|
||||||
#
|
|
||||||
# # 启用 MARCH_NATIVE
|
|
||||||
# add_compile_options(/arch:AVX)
|
|
||||||
#elseif(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
|
|
||||||
# # 如果是 GCC 或 Clang 编译器
|
|
||||||
# add_compile_options(-mavx) # 启用 AVX 指令集
|
|
||||||
# # 设置 SSE 选项
|
|
||||||
## set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse")
|
|
||||||
#
|
|
||||||
# # 设置 MARCH_NATIVE 选项
|
|
||||||
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native")
|
|
||||||
#endif()
|
|
||||||
|
|
||||||
|
|
||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
# 检测操作系统
|
# 检测操作系统
|
||||||
|
@ -79,7 +59,7 @@ if (NOT DEFINED Qt5_DIR)
|
||||||
if(LAMPCAE_LINUX)
|
if(LAMPCAE_LINUX)
|
||||||
set(Qt5_DIR "/opt/Qt5.14.2/5.14.2/gcc_64/lib/cmake/Qt5" CACHE PATH "Qt5Config.cmake所在目录" FORCE)
|
set(Qt5_DIR "/opt/Qt5.14.2/5.14.2/gcc_64/lib/cmake/Qt5" CACHE PATH "Qt5Config.cmake所在目录" FORCE)
|
||||||
elseif(LAMPCAE_WIN)
|
elseif(LAMPCAE_WIN)
|
||||||
set(Qt5_DIR "D:/vcpkg/installed/x64-windows/share/cmake/Qt5" CACHE PATH "Qt5Config.cmake所在目录" FORCE)
|
set(Qt5_DIR "C:/Qt/5.15.2/msvc2019_64/lib/cmake/Qt5" CACHE PATH "Qt5Config.cmake所在目录" FORCE)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -240,24 +220,17 @@ find_package(OpenMesh CONFIG REQUIRED)
|
||||||
|
|
||||||
# VCGLIB
|
# VCGLIB
|
||||||
find_path(VCGLIB_INCLUDE_DIRS "img/img.h")
|
find_path(VCGLIB_INCLUDE_DIRS "img/img.h")
|
||||||
|
|
||||||
# FFTW3
|
# FFTW3
|
||||||
find_package(FFTW3 CONFIG REQUIRED)
|
find_package(FFTW3 CONFIG REQUIRED)
|
||||||
|
|
||||||
# gsl
|
# gsl
|
||||||
find_package(GSL REQUIRED)
|
find_package(GSL REQUIRED)
|
||||||
|
#GDAL
|
||||||
# GDAL
|
|
||||||
find_package(GDAL CONFIG REQUIRED)
|
find_package(GDAL CONFIG REQUIRED)
|
||||||
|
#
|
||||||
# sqlite3
|
|
||||||
find_package(unofficial-sqlite3 CONFIG REQUIRED)
|
find_package(unofficial-sqlite3 CONFIG REQUIRED)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# QGIS 库 作为遥感数据操作,这个是插件库,如果不编译插件库,可以不用考虑这个库,注意这个库是由源代码构建,建议不要动
|
|
||||||
find_package(QGIS REQUIRED)
|
|
||||||
|
|
||||||
message("CMAKE_SOURCE_DIR ${CMAKE_SOURCE_DIR}")
|
message("CMAKE_SOURCE_DIR ${CMAKE_SOURCE_DIR}")
|
||||||
|
|
||||||
|
|
||||||
|
@ -274,7 +247,6 @@ include_directories(SYSTEM C:/PCL/include/pcl-1.14)
|
||||||
|
|
||||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||||
find_package(Qt5 REQUIRED COMPONENTS Test Core Quick Sql Core Xml Opengl Gui Svg Xmlpatterns Uitools Widgets Qml Printsupport Sensors Quickwidgets Quick Concurrent Openglextensions Charts Datavisualization Network)
|
find_package(Qt5 REQUIRED COMPONENTS Test Core Quick Sql Core Xml Opengl Gui Svg Xmlpatterns Uitools Widgets Qml Printsupport Sensors Quickwidgets Quick Concurrent Openglextensions Charts Datavisualization Network)
|
||||||
# PCL
|
|
||||||
find_package(PCL)
|
find_package(PCL)
|
||||||
include_directories(${PCL_INCLUDE_DIRS})
|
include_directories(${PCL_INCLUDE_DIRS})
|
||||||
include_directories(${VCGLIB_INCLUDE_DIRS})
|
include_directories(${VCGLIB_INCLUDE_DIRS})
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
<file>PointCloudProcess/images/bottom.png</file>
|
<file>PointCloudProcess/images/bottom.png</file>
|
||||||
<file>PointCloudProcess/images/color.png</file>
|
<file>PointCloudProcess/images/color.png</file>
|
||||||
<file>PointCloudProcess/images/front.png</file>
|
<file>PointCloudProcess/images/front.png</file>
|
||||||
|
<file>PointCloudProcess/images/keda.ico</file>
|
||||||
<file>PointCloudProcess/images/left.png</file>
|
<file>PointCloudProcess/images/left.png</file>
|
||||||
<file>PointCloudProcess/images/lock.png</file>
|
<file>PointCloudProcess/images/lock.png</file>
|
||||||
<file>PointCloudProcess/images/open.png</file>
|
<file>PointCloudProcess/images/open.png</file>
|
||||||
|
|
|
@ -32,12 +32,14 @@
|
||||||
<file>QUI/icon/zMinus.png</file>
|
<file>QUI/icon/zMinus.png</file>
|
||||||
<file>QUI/icon/zPlus.png</file>
|
<file>QUI/icon/zPlus.png</file>
|
||||||
<file>QUI/icon/fit.png</file>
|
<file>QUI/icon/fit.png</file>
|
||||||
|
<file>Hello.png</file>
|
||||||
<file>QUI/icon/solidMesh.png</file>
|
<file>QUI/icon/solidMesh.png</file>
|
||||||
<file>QUI/icon/surfaceMesh.png</file>
|
<file>QUI/icon/surfaceMesh.png</file>
|
||||||
<file>QUI/icon/material.png</file>
|
<file>QUI/icon/material.png</file>
|
||||||
<file>QUI/icon/physics.png</file>
|
<file>QUI/icon/physics.png</file>
|
||||||
<file>QUI/icon/chinese_language.png</file>
|
<file>QUI/icon/chinese_language.png</file>
|
||||||
<file>QUI/icon/english_language.png</file>
|
<file>QUI/icon/english_language.png</file>
|
||||||
|
<file>QUI/icon/icon.png</file>
|
||||||
<file>QUI/icon/surface.png</file>
|
<file>QUI/icon/surface.png</file>
|
||||||
<file>QUI/icon/surfaceWithEdge.png</file>
|
<file>QUI/icon/surfaceWithEdge.png</file>
|
||||||
<file>QUI/icon/about_us.png</file>
|
<file>QUI/icon/about_us.png</file>
|
||||||
|
@ -229,6 +231,7 @@
|
||||||
<file>PointCloudProcess/images/grey.png</file>
|
<file>PointCloudProcess/images/grey.png</file>
|
||||||
<file>PointCloudProcess/images/ic-redo.png</file>
|
<file>PointCloudProcess/images/ic-redo.png</file>
|
||||||
<file>PointCloudProcess/images/ic-undo.png</file>
|
<file>PointCloudProcess/images/ic-undo.png</file>
|
||||||
|
<file>PointCloudProcess/images/keda.ico</file>
|
||||||
<file>PointCloudProcess/images/left.png</file>
|
<file>PointCloudProcess/images/left.png</file>
|
||||||
<file>PointCloudProcess/images/lock.png</file>
|
<file>PointCloudProcess/images/lock.png</file>
|
||||||
<file>PointCloudProcess/images/open.png</file>
|
<file>PointCloudProcess/images/open.png</file>
|
||||||
|
|
38
README.md
38
README.md
|
@ -34,6 +34,11 @@
|
||||||
- <a href="https://www.bilibili.com/video/BV1FX4y1y7T4/" target="_blank">QtCreator编译</a>
|
- <a href="https://www.bilibili.com/video/BV1FX4y1y7T4/" target="_blank">QtCreator编译</a>
|
||||||
|
|
||||||
|
|
||||||
|
#### Linux
|
||||||
|
|
||||||
|
- <a href="https://www.bilibili.com/video/BV1iW4y1Y79p/" target="_blank">cmake + GNU GCC + make</a>
|
||||||
|
- <a href="https://www.bilibili.com/video/BV1xd4y1q7Cm/" target="_blank">借助vscode构建、编译、安装、打包</a>
|
||||||
|
|
||||||
### 编译说明
|
### 编译说明
|
||||||
|
|
||||||
- windows环境下使用vscode时,编译工具链只能使用Visual Studio,目前不支持MinGW工具
|
- windows环境下使用vscode时,编译工具链只能使用Visual Studio,目前不支持MinGW工具
|
||||||
|
@ -65,15 +70,20 @@
|
||||||
|
|
||||||
### extlib获取方式
|
### extlib获取方式
|
||||||
|
|
||||||
extlib文件变更:
|
### Linux系统
|
||||||
1. OCCT 7.6.5 ,VTK 9.3; 注意OCCT 依赖 VTK, 因此需要重新编译OCCT
|
|
||||||
2. QWT 升级到 6.2.0,qwtpolar 内嵌到了qwt中,需要重新编译;
|
```bash
|
||||||
3. python 升级到的 3.11.5
|
git clone https://gitee.com/DISOGitee/LAMPCAELinuxExtlib.git extlib
|
||||||
4. 增加了QGIS 3.26 cmake,为后期引入raster处理进行准备
|
```
|
||||||
|
|
||||||
|
### windows系统
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://gitee.com/DISOGitee/LAMPCAEWinExtlib.git extlib
|
git clone https://gitee.com/DISOGitee/LAMPCAEWinExtlib.git extlib
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## 编译打包
|
## 编译打包
|
||||||
|
|
||||||
项目采用cmake构建系统组织代码,可以直接使用cmake转换visual studio 2017工程或者生成Makefile文件,或者可以直接使用支持cmake系统的IDE(比如:vscode、clion、visual studio、qtcreator等)打开项目文件夹进行构建、编译。
|
项目采用cmake构建系统组织代码,可以直接使用cmake转换visual studio 2017工程或者生成Makefile文件,或者可以直接使用支持cmake系统的IDE(比如:vscode、clion、visual studio、qtcreator等)打开项目文件夹进行构建、编译。
|
||||||
|
@ -128,8 +138,20 @@ cmake --build build --target package
|
||||||
|
|
||||||
## 测试平台
|
## 测试平台
|
||||||
| 序号 | 操作系统 | GLIBC版本 | 编译器 | Qt | 测试结果 | 备注 |
|
| 序号 | 操作系统 | GLIBC版本 | 编译器 | Qt | 测试结果 | 备注 |
|
||||||
|:--:| :-----------: | :-------: | :---------: | :--: | :--: | :--: |
|
| :--: | :-----------: | :-------: | :---------: | :--: | :--: | :--: |
|
||||||
| 1 | Windows10 X64 | 无 | Visual Studio 2022 Community | Qt5.15.5 | 通过 | SDK 10.0.17763.0,NSIS成功打包 |
|
| 1 | Ubuntu18.04 | 2.27 | GNU GCC 7.5.0 | Qt5.14.2 | 通过 | |
|
||||||
|
| 2 | Ubuntu20.04 | 2.31 | GNU GCC 9.4.0 | Qt5.14.2 | 通过 | |
|
||||||
|
| 3 | Ubuntu22.04 | 2.35 | GNU GCC 11.2.0 | Qt5.14.2 | 通过 | deb成功打包 |
|
||||||
|
| 4 | CentOS 7.0.1406 | 2.17 | GNU GCC 8.3.1 | Qt5.14.2 | 通过 | 借助devtoolset-8升级GCC |
|
||||||
|
| 5 | CentOS 7.9.2009 | 2.17 | GNU GCC 7.5.0 | Qt5.14.2 | 通过 | |
|
||||||
|
| 6 | CentOS 8.5.2111 | 2.28 | GNU GCC 8.5.0 | Qt5.14.2 | 通过 | rpm成功打包 |
|
||||||
|
| 7 | RedHat Server 7.0 | | | | | 待测试 |
|
||||||
|
| 8 | RedHat 8.1 | 2.28 | GNU GCC 8.5.0 | Qt5.14.2 | 通过 | |
|
||||||
|
| 9 | RedHat 9.0 | | | | | 待测试 |
|
||||||
|
| 10 | Windows7 X64 | 无 | Visual Studio 2017 Community | Qt5.14.2 | 通过 | VS附带安装Windows 8.1SDK |
|
||||||
|
| 11 | Windows10 X64 | 无 | Visual Studio 2017 Community | Qt5.14.2 | 通过 | SDK 10.0.17763.0,NSIS成功打包 |
|
||||||
|
| 12 | deepin 20.7社区版 | | | | | 待测试 |
|
||||||
|
| 13 | ubuntukylin 22.04 | 2.35 | GNU GCC 11.2.0 | Qt5.14.2 | 通过 | 基于Ubuntu22.04 |
|
||||||
|
|
||||||
|
|
||||||
## 相关链接
|
## 相关链接
|
||||||
|
@ -150,4 +172,4 @@ cmake --build build --target package
|
||||||
|
|
||||||
技术交流QQ群:671925863
|
技术交流QQ群:671925863
|
||||||
|
|
||||||
|
官方微信号:LAMPCAE-DISO
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -1,23 +0,0 @@
|
||||||
[General]
|
|
||||||
CoordinateSystemName="Spheric(R,theta,phi)"
|
|
||||||
description=R:半径,theta 入射角,phi 方位角
|
|
||||||
A1="9.3,90,0"
|
|
||||||
A2="9.3,90,180"
|
|
||||||
S1="9.3,45,14"
|
|
||||||
S3="9.3,45,45"
|
|
||||||
S5="9.3,45,60"
|
|
||||||
S8="9.3,45,120"
|
|
||||||
S10="9.3,45,135"
|
|
||||||
S12="9.3,45,166"
|
|
||||||
F1="9.3,75,15"
|
|
||||||
F2="9.3,75,30"
|
|
||||||
F3="9.3,75,45"
|
|
||||||
F4="9.3,75,60"
|
|
||||||
F5="9.3,75,75"
|
|
||||||
F6="9.3,75,86"
|
|
||||||
F7="9.3,75,94"
|
|
||||||
F8="9.3,75,105"
|
|
||||||
F9="9.3,75,120"
|
|
||||||
F10="9.3,75,135"
|
|
||||||
F11="9.3,75,151"
|
|
||||||
F12="9.3,75,165"
|
|
|
@ -45,9 +45,9 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
||||||
set(OpenCASCADE_INCLUDE_DIRS "${OpenCASCADE_DIRS}/inc")
|
set(OpenCASCADE_INCLUDE_DIRS "${OpenCASCADE_DIRS}/inc")
|
||||||
set(OpenCASCADE_LIBRARY_DIRS "${OpenCASCADE_DIRS}/win64/vc14/lib")
|
set(OpenCASCADE_LIBRARY_DIRS "${OpenCASCADE_DIRS}/win64/vc14/lib")
|
||||||
set(OpenCASCADE_BINARY_DIRS "${OpenCASCADE_DIRS}/win64/vc14/bin")
|
set(OpenCASCADE_BINARY_DIRS "${OpenCASCADE_DIRS}/win64/vc14/bin")
|
||||||
# set(OpenCASCADE_INCLUDE_DIRS "${OpenCASCADE_DIRS}/include/opencascade")
|
# set(OpenCASCADE_INCLUDE_DIRS "${OpenCASCADE_DIRS}/include/opencascade")
|
||||||
# set(OpenCASCADE_LIBRARY_DIRS "${OpenCASCADE_DIRS}/lib")
|
# set(OpenCASCADE_LIBRARY_DIRS "${OpenCASCADE_DIRS}/lib")
|
||||||
# set(OpenCASCADE_BINARY_DIRS "${OpenCASCADE_DIRS}/bin")
|
# set(OpenCASCADE_BINARY_DIRS "${OpenCASCADE_DIRS}/bin")
|
||||||
elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||||
set(OpenCASCADE_INCLUDE_DIRS "${OpenCASCADE_DIRS}/include/opencascade")
|
set(OpenCASCADE_INCLUDE_DIRS "${OpenCASCADE_DIRS}/include/opencascade")
|
||||||
set(OpenCASCADE_LIBRARY_DIRS "${OpenCASCADE_DIRS}/lib")
|
set(OpenCASCADE_LIBRARY_DIRS "${OpenCASCADE_DIRS}/lib")
|
||||||
|
|
|
@ -36,7 +36,7 @@ endif()
|
||||||
set(LAMPCAE_Python_ALREADY_INCLUDED 1)
|
set(LAMPCAE_Python_ALREADY_INCLUDED 1)
|
||||||
|
|
||||||
set(Python_VERSION_MAJOR 3)
|
set(Python_VERSION_MAJOR 3)
|
||||||
set(Python_VERSION_MINOR 12)
|
set(Python_VERSION_MINOR 9)
|
||||||
set(Python_VERSION_PATCH 0)
|
set(Python_VERSION_PATCH 0)
|
||||||
# find_path 搜索包含某个文件的路径
|
# find_path 搜索包含某个文件的路径
|
||||||
# 如果在某个路径下发现了该文件,该结果会被存储到该变量中;如果没有找到,存储的结果将会是<VAR>-NOTFOUND
|
# 如果在某个路径下发现了该文件,该结果会被存储到该变量中;如果没有找到,存储的结果将会是<VAR>-NOTFOUND
|
||||||
|
@ -51,13 +51,11 @@ find_path(Python_DIRS
|
||||||
NAMES
|
NAMES
|
||||||
"${_python_h_dir}/Python.h"
|
"${_python_h_dir}/Python.h"
|
||||||
PATHS
|
PATHS
|
||||||
${CMAKE_SOURCE_DIR}/extlib/apps/Python312/
|
${CMAKE_SOURCE_DIR}/extlib/Python
|
||||||
NO_SYSTEM_ENVIRONMENT_PATH
|
NO_SYSTEM_ENVIRONMENT_PATH
|
||||||
NO_CMAKE_SYSTEM_PATH
|
NO_CMAKE_SYSTEM_PATH
|
||||||
)
|
)
|
||||||
|
|
||||||
message("Python_DIRS ${Python_DIRS}")
|
|
||||||
|
|
||||||
find_path(Python_INCLUDE_DIRS
|
find_path(Python_INCLUDE_DIRS
|
||||||
NAMES
|
NAMES
|
||||||
Python.h
|
Python.h
|
||||||
|
|
|
@ -1,223 +0,0 @@
|
||||||
## Once run this will define:
|
|
||||||
##
|
|
||||||
## QGIS_FOUND = system has QGIS lib
|
|
||||||
##
|
|
||||||
## QGIS_CORE_LIBRARY = full path to the CORE library
|
|
||||||
## QGIS_GUI_LIBRARY = full path to the GUI library
|
|
||||||
## QGIS_ANALYSIS_LIBRARY = full path to the ANALYSIS library
|
|
||||||
## QGIS_PLUGIN_DIR = full path to where QGIS plugins are installed
|
|
||||||
## QGIS_INCLUDE_DIR = where to find headers
|
|
||||||
## QGIS_UI_INCLUDE_DIR = where to find ui_* generated headers
|
|
||||||
##
|
|
||||||
## QGIS_VERSION = version as defined in qgsconfig.h, as major.minor.patch
|
|
||||||
##
|
|
||||||
## Definitions or ENV variables affecting search locations
|
|
||||||
##
|
|
||||||
## OSGEO4W_ROOT = [A-Z]:/path/to/OSGeo4W/install/root
|
|
||||||
## (^ use forward slashes!)
|
|
||||||
## OSGEO4W_QGIS_SUBDIR = qgis[-rel|-ltr][-dev], in OSGEO4W_ROOT/apps/
|
|
||||||
## QGIS_MAC_PATH = /path/to/any/QGIS.app/Contents
|
|
||||||
## QGIS_BUILD_PATH = [A-Z:]/path/to/QGIS/build/directory
|
|
||||||
##
|
|
||||||
## Tim Sutton
|
|
||||||
## Larry Shaffer (2017-01-31)
|
|
||||||
## 原本参数中需要考虑系统环境变量,这里替换为本地路径
|
|
||||||
##
|
|
||||||
##
|
|
||||||
|
|
||||||
# 部分参数变量设置
|
|
||||||
SET(QGISPROGRAMFILES ${CMAKE_SOURCE_DIR}/extlib) # qgis 文件包地址
|
|
||||||
SET(OSGEO4W_QGIS_SUBDIR QGIS) # qgis 文件名
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#MESSAGE("Searching for QGIS")
|
|
||||||
IF(WIN32)
|
|
||||||
# OSGEO4W_QGIS_SUBDIR relative install: qgis[-rel|-ltr][-dev], etc.
|
|
||||||
IF (NOT OSGEO4W_QGIS_SUBDIR OR "${OSGEO4W_QGIS_SUBDIR}" STREQUAL "")
|
|
||||||
IF (NOT "$ENV{OSGEO4W_QGIS_SUBDIR}" STREQUAL "")
|
|
||||||
SET (OSGEO4W_QGIS_SUBDIR $ENV{OSGEO4W_QGIS_SUBDIR})
|
|
||||||
ELSE ()
|
|
||||||
SET (OSGEO4W_QGIS_SUBDIR qgis)
|
|
||||||
ENDIF ()
|
|
||||||
ENDIF ()
|
|
||||||
|
|
||||||
#MESSAGE("Searching for QGIS in ${QGISPROGRAMFILES}/QGIS")
|
|
||||||
IF (MINGW)
|
|
||||||
FIND_PATH(QGIS_PLUGIN_DIR
|
|
||||||
NAMES libplugin_offlineediting.dll
|
|
||||||
PATHS
|
|
||||||
"${QGISPROGRAMFILES}/QGIS/plugins"
|
|
||||||
)
|
|
||||||
FIND_PATH(QGIS_INCLUDE_DIR
|
|
||||||
NAMES qgsapplication.h
|
|
||||||
PATHS
|
|
||||||
"${QGISPROGRAMFILES}/QGIS/include"
|
|
||||||
)
|
|
||||||
FIND_LIBRARY(QGIS_CORE_LIBRARY
|
|
||||||
NAMES qgis_core
|
|
||||||
PATHS
|
|
||||||
"${QGISPROGRAMFILES}/QGIS/"
|
|
||||||
)
|
|
||||||
FIND_LIBRARY(QGIS_GUI_LIBRARY
|
|
||||||
NAMES qgis_gui
|
|
||||||
PATHS
|
|
||||||
"${QGISPROGRAMFILES}/QGIS/"
|
|
||||||
)
|
|
||||||
ENDIF (MINGW)
|
|
||||||
|
|
||||||
IF (MSVC)
|
|
||||||
FIND_PATH(QGIS_PLUGIN_DIR
|
|
||||||
NAMES plugin_offlineediting.dll
|
|
||||||
PATHS
|
|
||||||
"$ENV{OSGEO4W_ROOT}/apps/${OSGEO4W_QGIS_SUBDIR}/plugins"
|
|
||||||
"${QGISPROGRAMFILES}/QGIS/plugins"
|
|
||||||
)
|
|
||||||
FIND_PATH(QGIS_INCLUDE_DIR
|
|
||||||
NAMES qgsapplication.h
|
|
||||||
PATHS
|
|
||||||
"$ENV{INCLUDE}"
|
|
||||||
"$ENV{LIB_DIR}/include/qgis"
|
|
||||||
"$ENV{OSGEO4W_ROOT}/include"
|
|
||||||
"$ENV{OSGEO4W_ROOT}/apps/${OSGEO4W_QGIS_SUBDIR}/include"
|
|
||||||
"${QGISPROGRAMFILES}/QGIS/include"
|
|
||||||
)
|
|
||||||
|
|
||||||
FIND_LIBRARY(QGIS_APP_LIBRARY
|
|
||||||
NAMES qgis_app
|
|
||||||
PATHS
|
|
||||||
"$ENV{LIB_DIR}/lib/"
|
|
||||||
"$ENV{LIB}"
|
|
||||||
"$ENV{OSGEO4W_ROOT}/lib"
|
|
||||||
"$ENV{OSGEO4W_ROOT}/apps/${OSGEO4W_QGIS_SUBDIR}/lib"
|
|
||||||
"${QGISPROGRAMFILES}/QGIS/lib"
|
|
||||||
)
|
|
||||||
FIND_LIBRARY(QGIS_CORE_LIBRARY
|
|
||||||
NAMES qgis_core
|
|
||||||
PATHS
|
|
||||||
"$ENV{LIB_DIR}/lib/"
|
|
||||||
"$ENV{LIB}"
|
|
||||||
"$ENV{OSGEO4W_ROOT}/lib"
|
|
||||||
"$ENV{OSGEO4W_ROOT}/apps/${OSGEO4W_QGIS_SUBDIR}/lib"
|
|
||||||
"${QGISPROGRAMFILES}/QGIS/lib"
|
|
||||||
)
|
|
||||||
FIND_LIBRARY(QGIS_GUI_LIBRARY
|
|
||||||
NAMES qgis_gui
|
|
||||||
PATHS
|
|
||||||
"$ENV{LIB_DIR}"
|
|
||||||
"$ENV{LIB}"
|
|
||||||
"$ENV{OSGEO4W_ROOT}/lib"
|
|
||||||
"$ENV{OSGEO4W_ROOT}/apps/${OSGEO4W_QGIS_SUBDIR}/lib"
|
|
||||||
"${QGISPROGRAMFILES}/QGIS/lib"
|
|
||||||
)
|
|
||||||
FIND_LIBRARY(QGIS_ANALYSIS_LIBRARY
|
|
||||||
NAMES qgis_analysis
|
|
||||||
PATHS
|
|
||||||
"$ENV{LIB_DIR}"
|
|
||||||
"$ENV{LIB}"
|
|
||||||
"$ENV{OSGEO4W_ROOT}/lib"
|
|
||||||
"$ENV{OSGEO4W_ROOT}/apps/${OSGEO4W_QGIS_SUBDIR}/lib"
|
|
||||||
"${QGISPROGRAMFILES}/QGIS/lib"
|
|
||||||
)
|
|
||||||
|
|
||||||
ENDIF (MSVC)
|
|
||||||
|
|
||||||
message("QGIS Found QGIS_INCLUDE_DIR ${QGIS_INCLUDE_DIR}")
|
|
||||||
message("QGIS Found QGIS_CORE_LIBRARY ${QGIS_CORE_LIBRARY}")
|
|
||||||
message("QGIS Found QGIS_GUI_LIBRARY ${QGIS_GUI_LIBRARY}")
|
|
||||||
message("QGIS Found QGIS_ANALYSIS_LIBRARY ${QGIS_ANALYSIS_LIBRARY}")
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ENDIF(WIN32)
|
|
||||||
|
|
||||||
IF (QGIS_INCLUDE_DIR)
|
|
||||||
SET(QGIS_VERSION QGIS_VERSION-NOTFOUND)
|
|
||||||
FIND_FILE(_qgsconfig_h qgsconfig.h PATHS ${QGIS_INCLUDE_DIR})
|
|
||||||
IF (_qgsconfig_h)
|
|
||||||
FILE(READ ${_qgsconfig_h} _qgsconfig)
|
|
||||||
IF (_qgsconfig)
|
|
||||||
# version defined like #define VERSION "2.14.8-Essen"
|
|
||||||
FILE(STRINGS "${_qgsconfig_h}" _qgsversion_str REGEX "^#define VERSION .*$")
|
|
||||||
STRING(REGEX REPLACE "^#define VERSION +\"([0-9]+\\.[0-9]+\\.[0-9]+).*$" "\\1" _qgsversion "${_qgsversion_str}")
|
|
||||||
IF (_qgsversion)
|
|
||||||
SET(QGIS_VERSION ${_qgsversion})
|
|
||||||
ELSE ()
|
|
||||||
MESSAGE(WARNING "No QGIS version determined: failed to parse qgsconfig.h")
|
|
||||||
ENDIF ()
|
|
||||||
ELSE()
|
|
||||||
MESSAGE(WARNING "No QGIS version determined: failed to read qgsconfig.h")
|
|
||||||
ENDIF ()
|
|
||||||
ELSE ()
|
|
||||||
MESSAGE(WARNING "No QGIS version determined: failed to find qgsconfig.h")
|
|
||||||
ENDIF ()
|
|
||||||
ENDIF ()
|
|
||||||
|
|
||||||
IF (QGIS_INCLUDE_DIR AND QGIS_CORE_LIBRARY AND QGIS_GUI_LIBRARY AND QGIS_ANALYSIS_LIBRARY)
|
|
||||||
SET(QGIS_FOUND TRUE)
|
|
||||||
ENDIF ()
|
|
||||||
|
|
||||||
IF (QGIS_FOUND)
|
|
||||||
IF (NOT QGIS_FIND_QUIETLY)
|
|
||||||
MESSAGE(STATUS "Found QGIS: ${QGIS_VERSION}")
|
|
||||||
MESSAGE(STATUS "Found QGIS core: ${QGIS_CORE_LIBRARY}")
|
|
||||||
MESSAGE(STATUS "Found QGIS gui: ${QGIS_GUI_LIBRARY}")
|
|
||||||
MESSAGE(STATUS "Found QGIS analysis: ${QGIS_ANALYSIS_LIBRARY}")
|
|
||||||
MESSAGE(STATUS "Found QGIS plugins directory: ${QGIS_PLUGIN_DIR}")
|
|
||||||
ENDIF (NOT QGIS_FIND_QUIETLY)
|
|
||||||
ELSE (QGIS_FOUND)
|
|
||||||
IF (QGIS_FIND_REQUIRED)
|
|
||||||
MESSAGE(FATAL_ERROR "Could not find QGIS")
|
|
||||||
ENDIF (QGIS_FIND_REQUIRED)
|
|
||||||
ENDIF (QGIS_FOUND)
|
|
||||||
|
|
||||||
# QGIS::App QGIS::Core QGIS::Gui QGIS::Analysis
|
|
||||||
# 添加QGIS App导入库
|
|
||||||
add_library(QGIS::App SHARED IMPORTED)
|
|
||||||
set_property(TARGET QGIS::App PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${QGIS_INCLUDE_DIR})
|
|
||||||
set_property(TARGET QGIS::App APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
|
|
||||||
set_property(TARGET QGIS::App APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG)
|
|
||||||
set_target_properties(QGIS::App PROPERTIES
|
|
||||||
IMPORTED_IMPLIB_RELEASE "${QGISPROGRAMFILES}/QGIS/lib/qgis_app.lib"
|
|
||||||
IMPORTED_LOCATION_RELEASE "${QGISPROGRAMFILES}/QGIS/bin/qgis_app.dll"
|
|
||||||
IMPORTED_IMPLIB_DEBUG "${QGISPROGRAMFILES}/QGIS/lib/qgis_app.lib"
|
|
||||||
IMPORTED_LOCATION_DEBUG "${QGISPROGRAMFILES}/QGIS/bin/qgis_app.dll"
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
add_library(QGIS::Core SHARED IMPORTED)
|
|
||||||
set_property(TARGET QGIS::Core PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${QGIS_INCLUDE_DIR})
|
|
||||||
set_property(TARGET QGIS::Core APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
|
|
||||||
set_property(TARGET QGIS::Core APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG)
|
|
||||||
set_target_properties(QGIS::Core PROPERTIES
|
|
||||||
IMPORTED_IMPLIB_RELEASE "${QGISPROGRAMFILES}/QGIS/lib/qgis_core.lib"
|
|
||||||
IMPORTED_LOCATION_RELEASE "${QGISPROGRAMFILES}/QGIS/bin/qgis_core.dll"
|
|
||||||
IMPORTED_IMPLIB_DEBUG "${QGISPROGRAMFILES}/QGIS/lib/qgis_core.lib"
|
|
||||||
IMPORTED_LOCATION_DEBUG "${QGISPROGRAMFILES}/QGIS/bin/qgis_core.dll"
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
add_library(QGIS::Gui SHARED IMPORTED)
|
|
||||||
set_property(TARGET QGIS::Gui PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${QGIS_INCLUDE_DIR})
|
|
||||||
set_property(TARGET QGIS::Gui APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
|
|
||||||
set_property(TARGET QGIS::Gui APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG)
|
|
||||||
set_target_properties(QGIS::Gui PROPERTIES
|
|
||||||
IMPORTED_IMPLIB_RELEASE "${QGISPROGRAMFILES}/QGIS/lib/qgis_gui.lib"
|
|
||||||
IMPORTED_LOCATION_RELEASE "${QGISPROGRAMFILES}/QGIS/bin/qgis_gui.dll"
|
|
||||||
IMPORTED_IMPLIB_DEBUG "${QGISPROGRAMFILES}/QGIS/lib/qgis_gui.lib"
|
|
||||||
IMPORTED_LOCATION_DEBUG "${QGISPROGRAMFILES}/QGIS/bin/qgis_gui.dll"
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
add_library(QGIS::Analysis SHARED IMPORTED)
|
|
||||||
set_property(TARGET QGIS::Analysis PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${QGIS_INCLUDE_DIR})
|
|
||||||
set_property(TARGET QGIS::Analysis APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
|
|
||||||
set_property(TARGET QGIS::Analysis APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG)
|
|
||||||
set_target_properties(QGIS::Analysis PROPERTIES
|
|
||||||
IMPORTED_IMPLIB_RELEASE "${QGISPROGRAMFILES}/QGIS/lib/qgis_analysis.lib"
|
|
||||||
IMPORTED_LOCATION_RELEASE "${QGISPROGRAMFILES}/QGIS/bin/qgis_analysis.dll"
|
|
||||||
IMPORTED_IMPLIB_DEBUG "${QGISPROGRAMFILES}/QGIS/lib/qgis_analysis.lib"
|
|
||||||
IMPORTED_LOCATION_DEBUG "${QGISPROGRAMFILES}/QGIS/bin/qgis_analysis.dll"
|
|
||||||
)
|
|
||||||
|
|
|
@ -46,9 +46,9 @@ find_path(QuaZIP_DIRS
|
||||||
NO_CMAKE_SYSTEM_PATH
|
NO_CMAKE_SYSTEM_PATH
|
||||||
)
|
)
|
||||||
|
|
||||||
set(QuaZIP_VERSION_MAJOR 1)
|
set(QuaZIP_VERSION_MAJOR 0)
|
||||||
set(QuaZIP_VERSION_MINOR 4)
|
set(QuaZIP_VERSION_MINOR 7)
|
||||||
set(QuaZIP_VERSION_PATCH 0)
|
set(QuaZIP_VERSION_PATCH 3)
|
||||||
|
|
||||||
set(QuaZIP_VERSION "${QuaZIP_VERSION_MAJOR}.${QuaZIP_VERSION_MINOR}.${QuaZIP_VERSION_PATCH}")
|
set(QuaZIP_VERSION "${QuaZIP_VERSION_MAJOR}.${QuaZIP_VERSION_MINOR}.${QuaZIP_VERSION_PATCH}")
|
||||||
|
|
||||||
|
@ -61,16 +61,16 @@ find_path(QuaZIP_INCLUDE_DIRS
|
||||||
|
|
||||||
find_path(QuaZIP_LIBRARY_DIRS
|
find_path(QuaZIP_LIBRARY_DIRS
|
||||||
NAMES
|
NAMES
|
||||||
quazip1-qt5.lib libquazip5.so
|
quazip5.lib libquazip5.so
|
||||||
HINTS
|
HINTS
|
||||||
${QuaZIP_DIRS}/lib
|
${QuaZIP_DIRS}/lib
|
||||||
)
|
)
|
||||||
|
|
||||||
find_path(QuaZIP_BINARY_DIRS
|
find_path(QuaZIP_BINARY_DIRS
|
||||||
NAMES
|
NAMES
|
||||||
quazip1-qt5.dll libquazip5.so
|
quazip5.dll libquazip5.so
|
||||||
HINTS
|
HINTS
|
||||||
${QuaZIP_DIRS}/bin
|
${QuaZIP_DIRS}/lib
|
||||||
)
|
)
|
||||||
|
|
||||||
set(QuaZIP_LIBRARIES LAMPCAE::QUAZIP)
|
set(QuaZIP_LIBRARIES LAMPCAE::QUAZIP)
|
||||||
|
@ -86,10 +86,10 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||||
elseif(CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
elseif(CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
||||||
set_property(TARGET LAMPCAE::QUAZIP APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG)
|
set_property(TARGET LAMPCAE::QUAZIP APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG)
|
||||||
set_target_properties(LAMPCAE::QUAZIP PROPERTIES
|
set_target_properties(LAMPCAE::QUAZIP PROPERTIES
|
||||||
IMPORTED_IMPLIB_RELEASE "${QuaZIP_LIBRARY_DIRS}/quazip1-qt5.lib"
|
IMPORTED_IMPLIB_RELEASE "${QuaZIP_LIBRARY_DIRS}/quazip5.lib"
|
||||||
IMPORTED_LOCATION_RELEASE "${QuaZIP_BINARY_DIRS}/quazip1-qt5.dll"
|
IMPORTED_LOCATION_RELEASE "${QuaZIP_BINARY_DIRS}/quazip5.dll"
|
||||||
IMPORTED_IMPLIB_DEBUG "${QuaZIP_LIBRARY_DIRS}/quazip1-qt5d.lib"
|
IMPORTED_IMPLIB_DEBUG "${QuaZIP_LIBRARY_DIRS}/quazip5d.lib"
|
||||||
IMPORTED_LOCATION_DEBUG "${QuaZIP_BINARY_DIRS}/quazip1-qt5d.dll"
|
IMPORTED_LOCATION_DEBUG "${QuaZIP_BINARY_DIRS}/quazip5d.dll"
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
@ -45,12 +45,12 @@ set(LAMPCAE_Qwt_ALREADY_INCLUDED 1)
|
||||||
|
|
||||||
# find_path 搜索包含某个文件的路径
|
# find_path 搜索包含某个文件的路径
|
||||||
# 如果在某个路径下发现了该文件,该结果会被存储到该变量中;如果没有找到,存储的结果将会是<VAR>-NOTFOUND
|
# 如果在某个路径下发现了该文件,该结果会被存储到该变量中;如果没有找到,存储的结果将会是<VAR>-NOTFOUND
|
||||||
set(Qwt_DIRS ${CMAKE_SOURCE_DIR}/extlib/qwt) # 设置qwt 路径
|
set(Qwt_DIRS C:/Qwt) # 设置qwt 路径
|
||||||
find_path(Qwt_DIRS
|
find_path(Qwt_DIRS
|
||||||
NAMES
|
NAMES
|
||||||
qwt.h
|
qwt.h
|
||||||
PATHS
|
PATHS
|
||||||
${CMAKE_SOURCE_DIR}/extlib/qwt/src
|
C:/Qwt
|
||||||
NO_SYSTEM_ENVIRONMENT_PATH
|
NO_SYSTEM_ENVIRONMENT_PATH
|
||||||
NO_CMAKE_SYSTEM_PATH
|
NO_CMAKE_SYSTEM_PATH
|
||||||
)
|
)
|
||||||
|
@ -69,21 +69,21 @@ find_path(Qwt_INCLUDE_DIRS
|
||||||
NAMES
|
NAMES
|
||||||
qwt.h
|
qwt.h
|
||||||
HINTS
|
HINTS
|
||||||
${CMAKE_SOURCE_DIR}/extlib/qwt/src
|
C:/Qwt/include
|
||||||
)
|
)
|
||||||
|
|
||||||
find_path(Qwt_LIBRARY_DIRS
|
find_path(Qwt_LIBRARY_DIRS
|
||||||
NAMES
|
NAMES
|
||||||
qwt.lib libqwt.so
|
qwt.lib libqwt.so
|
||||||
HINTS
|
HINTS
|
||||||
${CMAKE_SOURCE_DIR}/extlib/qwt/lib
|
C:/Qwt/lib
|
||||||
)
|
)
|
||||||
|
|
||||||
find_path(Qwt_BINARY_DIRS
|
find_path(Qwt_BINARY_DIRS
|
||||||
NAMES
|
NAMES
|
||||||
qwt.dll libqwt.so
|
qwt.dll libqwt.so
|
||||||
HINTS
|
HINTS
|
||||||
${CMAKE_SOURCE_DIR}/extlib/qwt/lib
|
C:/Qwt/lib
|
||||||
)
|
)
|
||||||
|
|
||||||
set(Qwt_LIBRARIES LAMPCAE::QWT;LAMPCAE::QWTPOLAR)
|
set(Qwt_LIBRARIES LAMPCAE::QWT;LAMPCAE::QWTPOLAR)
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
After Width: | Height: | Size: 74 KiB |
Binary file not shown.
After Width: | Height: | Size: 77 KiB |
Binary file not shown.
After Width: | Height: | Size: 81 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,279 @@
|
||||||
|
A. HISTORY OF THE SOFTWARE
|
||||||
|
==========================
|
||||||
|
|
||||||
|
Python was created in the early 1990s by Guido van Rossum at Stichting
|
||||||
|
Mathematisch Centrum (CWI, see http://www.cwi.nl) in the Netherlands
|
||||||
|
as a successor of a language called ABC. Guido remains Python's
|
||||||
|
principal author, although it includes many contributions from others.
|
||||||
|
|
||||||
|
In 1995, Guido continued his work on Python at the Corporation for
|
||||||
|
National Research Initiatives (CNRI, see http://www.cnri.reston.va.us)
|
||||||
|
in Reston, Virginia where he released several versions of the
|
||||||
|
software.
|
||||||
|
|
||||||
|
In May 2000, Guido and the Python core development team moved to
|
||||||
|
BeOpen.com to form the BeOpen PythonLabs team. In October of the same
|
||||||
|
year, the PythonLabs team moved to Digital Creations, which became
|
||||||
|
Zope Corporation. In 2001, the Python Software Foundation (PSF, see
|
||||||
|
https://www.python.org/psf/) was formed, a non-profit organization
|
||||||
|
created specifically to own Python-related Intellectual Property.
|
||||||
|
Zope Corporation was a sponsoring member of the PSF.
|
||||||
|
|
||||||
|
All Python releases are Open Source (see http://www.opensource.org for
|
||||||
|
the Open Source Definition). Historically, most, but not all, Python
|
||||||
|
releases have also been GPL-compatible; the table below summarizes
|
||||||
|
the various releases.
|
||||||
|
|
||||||
|
Release Derived Year Owner GPL-
|
||||||
|
from compatible? (1)
|
||||||
|
|
||||||
|
0.9.0 thru 1.2 1991-1995 CWI yes
|
||||||
|
1.3 thru 1.5.2 1.2 1995-1999 CNRI yes
|
||||||
|
1.6 1.5.2 2000 CNRI no
|
||||||
|
2.0 1.6 2000 BeOpen.com no
|
||||||
|
1.6.1 1.6 2001 CNRI yes (2)
|
||||||
|
2.1 2.0+1.6.1 2001 PSF no
|
||||||
|
2.0.1 2.0+1.6.1 2001 PSF yes
|
||||||
|
2.1.1 2.1+2.0.1 2001 PSF yes
|
||||||
|
2.1.2 2.1.1 2002 PSF yes
|
||||||
|
2.1.3 2.1.2 2002 PSF yes
|
||||||
|
2.2 and above 2.1.1 2001-now PSF yes
|
||||||
|
|
||||||
|
Footnotes:
|
||||||
|
|
||||||
|
(1) GPL-compatible doesn't mean that we're distributing Python under
|
||||||
|
the GPL. All Python licenses, unlike the GPL, let you distribute
|
||||||
|
a modified version without making your changes open source. The
|
||||||
|
GPL-compatible licenses make it possible to combine Python with
|
||||||
|
other software that is released under the GPL; the others don't.
|
||||||
|
|
||||||
|
(2) According to Richard Stallman, 1.6.1 is not GPL-compatible,
|
||||||
|
because its license has a choice of law clause. According to
|
||||||
|
CNRI, however, Stallman's lawyer has told CNRI's lawyer that 1.6.1
|
||||||
|
is "not incompatible" with the GPL.
|
||||||
|
|
||||||
|
Thanks to the many outside volunteers who have worked under Guido's
|
||||||
|
direction to make these releases possible.
|
||||||
|
|
||||||
|
|
||||||
|
B. TERMS AND CONDITIONS FOR ACCESSING OR OTHERWISE USING PYTHON
|
||||||
|
===============================================================
|
||||||
|
|
||||||
|
Python software and documentation are licensed under the
|
||||||
|
Python Software Foundation License Version 2.
|
||||||
|
|
||||||
|
Starting with Python 3.8.6, examples, recipes, and other code in
|
||||||
|
the documentation are dual licensed under the PSF License Version 2
|
||||||
|
and the Zero-Clause BSD license.
|
||||||
|
|
||||||
|
Some software incorporated into Python is under different licenses.
|
||||||
|
The licenses are listed with code falling under that license.
|
||||||
|
|
||||||
|
|
||||||
|
PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2
|
||||||
|
--------------------------------------------
|
||||||
|
|
||||||
|
1. This LICENSE AGREEMENT is between the Python Software Foundation
|
||||||
|
("PSF"), and the Individual or Organization ("Licensee") accessing and
|
||||||
|
otherwise using this software ("Python") in source or binary form and
|
||||||
|
its associated documentation.
|
||||||
|
|
||||||
|
2. Subject to the terms and conditions of this License Agreement, PSF hereby
|
||||||
|
grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce,
|
||||||
|
analyze, test, perform and/or display publicly, prepare derivative works,
|
||||||
|
distribute, and otherwise use Python alone or in any derivative version,
|
||||||
|
provided, however, that PSF's License Agreement and PSF's notice of copyright,
|
||||||
|
i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
|
||||||
|
2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 Python Software Foundation;
|
||||||
|
All Rights Reserved" are retained in Python alone or in any derivative version
|
||||||
|
prepared by Licensee.
|
||||||
|
|
||||||
|
3. In the event Licensee prepares a derivative work that is based on
|
||||||
|
or incorporates Python or any part thereof, and wants to make
|
||||||
|
the derivative work available to others as provided herein, then
|
||||||
|
Licensee hereby agrees to include in any such work a brief summary of
|
||||||
|
the changes made to Python.
|
||||||
|
|
||||||
|
4. PSF is making Python available to Licensee on an "AS IS"
|
||||||
|
basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
|
||||||
|
IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND
|
||||||
|
DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
|
||||||
|
FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT
|
||||||
|
INFRINGE ANY THIRD PARTY RIGHTS.
|
||||||
|
|
||||||
|
5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
|
||||||
|
FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS
|
||||||
|
A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON,
|
||||||
|
OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
|
||||||
|
|
||||||
|
6. This License Agreement will automatically terminate upon a material
|
||||||
|
breach of its terms and conditions.
|
||||||
|
|
||||||
|
7. Nothing in this License Agreement shall be deemed to create any
|
||||||
|
relationship of agency, partnership, or joint venture between PSF and
|
||||||
|
Licensee. This License Agreement does not grant permission to use PSF
|
||||||
|
trademarks or trade name in a trademark sense to endorse or promote
|
||||||
|
products or services of Licensee, or any third party.
|
||||||
|
|
||||||
|
8. By copying, installing or otherwise using Python, Licensee
|
||||||
|
agrees to be bound by the terms and conditions of this License
|
||||||
|
Agreement.
|
||||||
|
|
||||||
|
|
||||||
|
BEOPEN.COM LICENSE AGREEMENT FOR PYTHON 2.0
|
||||||
|
-------------------------------------------
|
||||||
|
|
||||||
|
BEOPEN PYTHON OPEN SOURCE LICENSE AGREEMENT VERSION 1
|
||||||
|
|
||||||
|
1. This LICENSE AGREEMENT is between BeOpen.com ("BeOpen"), having an
|
||||||
|
office at 160 Saratoga Avenue, Santa Clara, CA 95051, and the
|
||||||
|
Individual or Organization ("Licensee") accessing and otherwise using
|
||||||
|
this software in source or binary form and its associated
|
||||||
|
documentation ("the Software").
|
||||||
|
|
||||||
|
2. Subject to the terms and conditions of this BeOpen Python License
|
||||||
|
Agreement, BeOpen hereby grants Licensee a non-exclusive,
|
||||||
|
royalty-free, world-wide license to reproduce, analyze, test, perform
|
||||||
|
and/or display publicly, prepare derivative works, distribute, and
|
||||||
|
otherwise use the Software alone or in any derivative version,
|
||||||
|
provided, however, that the BeOpen Python License is retained in the
|
||||||
|
Software, alone or in any derivative version prepared by Licensee.
|
||||||
|
|
||||||
|
3. BeOpen is making the Software available to Licensee on an "AS IS"
|
||||||
|
basis. BEOPEN MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
|
||||||
|
IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, BEOPEN MAKES NO AND
|
||||||
|
DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
|
||||||
|
FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE WILL NOT
|
||||||
|
INFRINGE ANY THIRD PARTY RIGHTS.
|
||||||
|
|
||||||
|
4. BEOPEN SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF THE
|
||||||
|
SOFTWARE FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS
|
||||||
|
AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THE SOFTWARE, OR ANY
|
||||||
|
DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
|
||||||
|
|
||||||
|
5. This License Agreement will automatically terminate upon a material
|
||||||
|
breach of its terms and conditions.
|
||||||
|
|
||||||
|
6. This License Agreement shall be governed by and interpreted in all
|
||||||
|
respects by the law of the State of California, excluding conflict of
|
||||||
|
law provisions. Nothing in this License Agreement shall be deemed to
|
||||||
|
create any relationship of agency, partnership, or joint venture
|
||||||
|
between BeOpen and Licensee. This License Agreement does not grant
|
||||||
|
permission to use BeOpen trademarks or trade names in a trademark
|
||||||
|
sense to endorse or promote products or services of Licensee, or any
|
||||||
|
third party. As an exception, the "BeOpen Python" logos available at
|
||||||
|
http://www.pythonlabs.com/logos.html may be used according to the
|
||||||
|
permissions granted on that web page.
|
||||||
|
|
||||||
|
7. By copying, installing or otherwise using the software, Licensee
|
||||||
|
agrees to be bound by the terms and conditions of this License
|
||||||
|
Agreement.
|
||||||
|
|
||||||
|
|
||||||
|
CNRI LICENSE AGREEMENT FOR PYTHON 1.6.1
|
||||||
|
---------------------------------------
|
||||||
|
|
||||||
|
1. This LICENSE AGREEMENT is between the Corporation for National
|
||||||
|
Research Initiatives, having an office at 1895 Preston White Drive,
|
||||||
|
Reston, VA 20191 ("CNRI"), and the Individual or Organization
|
||||||
|
("Licensee") accessing and otherwise using Python 1.6.1 software in
|
||||||
|
source or binary form and its associated documentation.
|
||||||
|
|
||||||
|
2. Subject to the terms and conditions of this License Agreement, CNRI
|
||||||
|
hereby grants Licensee a nonexclusive, royalty-free, world-wide
|
||||||
|
license to reproduce, analyze, test, perform and/or display publicly,
|
||||||
|
prepare derivative works, distribute, and otherwise use Python 1.6.1
|
||||||
|
alone or in any derivative version, provided, however, that CNRI's
|
||||||
|
License Agreement and CNRI's notice of copyright, i.e., "Copyright (c)
|
||||||
|
1995-2001 Corporation for National Research Initiatives; All Rights
|
||||||
|
Reserved" are retained in Python 1.6.1 alone or in any derivative
|
||||||
|
version prepared by Licensee. Alternately, in lieu of CNRI's License
|
||||||
|
Agreement, Licensee may substitute the following text (omitting the
|
||||||
|
quotes): "Python 1.6.1 is made available subject to the terms and
|
||||||
|
conditions in CNRI's License Agreement. This Agreement together with
|
||||||
|
Python 1.6.1 may be located on the Internet using the following
|
||||||
|
unique, persistent identifier (known as a handle): 1895.22/1013. This
|
||||||
|
Agreement may also be obtained from a proxy server on the Internet
|
||||||
|
using the following URL: http://hdl.handle.net/1895.22/1013".
|
||||||
|
|
||||||
|
3. In the event Licensee prepares a derivative work that is based on
|
||||||
|
or incorporates Python 1.6.1 or any part thereof, and wants to make
|
||||||
|
the derivative work available to others as provided herein, then
|
||||||
|
Licensee hereby agrees to include in any such work a brief summary of
|
||||||
|
the changes made to Python 1.6.1.
|
||||||
|
|
||||||
|
4. CNRI is making Python 1.6.1 available to Licensee on an "AS IS"
|
||||||
|
basis. CNRI MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
|
||||||
|
IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, CNRI MAKES NO AND
|
||||||
|
DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
|
||||||
|
FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON 1.6.1 WILL NOT
|
||||||
|
INFRINGE ANY THIRD PARTY RIGHTS.
|
||||||
|
|
||||||
|
5. CNRI SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
|
||||||
|
1.6.1 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS
|
||||||
|
A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 1.6.1,
|
||||||
|
OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
|
||||||
|
|
||||||
|
6. This License Agreement will automatically terminate upon a material
|
||||||
|
breach of its terms and conditions.
|
||||||
|
|
||||||
|
7. This License Agreement shall be governed by the federal
|
||||||
|
intellectual property law of the United States, including without
|
||||||
|
limitation the federal copyright law, and, to the extent such
|
||||||
|
U.S. federal law does not apply, by the law of the Commonwealth of
|
||||||
|
Virginia, excluding Virginia's conflict of law provisions.
|
||||||
|
Notwithstanding the foregoing, with regard to derivative works based
|
||||||
|
on Python 1.6.1 that incorporate non-separable material that was
|
||||||
|
previously distributed under the GNU General Public License (GPL), the
|
||||||
|
law of the Commonwealth of Virginia shall govern this License
|
||||||
|
Agreement only as to issues arising under or with respect to
|
||||||
|
Paragraphs 4, 5, and 7 of this License Agreement. Nothing in this
|
||||||
|
License Agreement shall be deemed to create any relationship of
|
||||||
|
agency, partnership, or joint venture between CNRI and Licensee. This
|
||||||
|
License Agreement does not grant permission to use CNRI trademarks or
|
||||||
|
trade name in a trademark sense to endorse or promote products or
|
||||||
|
services of Licensee, or any third party.
|
||||||
|
|
||||||
|
8. By clicking on the "ACCEPT" button where indicated, or by copying,
|
||||||
|
installing or otherwise using Python 1.6.1, Licensee agrees to be
|
||||||
|
bound by the terms and conditions of this License Agreement.
|
||||||
|
|
||||||
|
ACCEPT
|
||||||
|
|
||||||
|
|
||||||
|
CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2
|
||||||
|
--------------------------------------------------
|
||||||
|
|
||||||
|
Copyright (c) 1991 - 1995, Stichting Mathematisch Centrum Amsterdam,
|
||||||
|
The Netherlands. All rights reserved.
|
||||||
|
|
||||||
|
Permission to use, copy, modify, and distribute this software and its
|
||||||
|
documentation for any purpose and without fee is hereby granted,
|
||||||
|
provided that the above copyright notice appear in all copies and that
|
||||||
|
both that copyright notice and this permission notice appear in
|
||||||
|
supporting documentation, and that the name of Stichting Mathematisch
|
||||||
|
Centrum or CWI not be used in advertising or publicity pertaining to
|
||||||
|
distribution of the software without specific, written prior
|
||||||
|
permission.
|
||||||
|
|
||||||
|
STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO
|
||||||
|
THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||||
|
FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE
|
||||||
|
FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||||
|
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||||
|
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
|
||||||
|
OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
|
ZERO-CLAUSE BSD LICENSE FOR CODE IN THE PYTHON DOCUMENTATION
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
|
||||||
|
Permission to use, copy, modify, and/or distribute this software for any
|
||||||
|
purpose with or without fee is hereby granted.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||||||
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||||
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||||
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||||
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||||||
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||||
|
PERFORMANCE OF THIS SOFTWARE.
|
|
@ -0,0 +1,147 @@
|
||||||
|
"""Record of phased-in incompatible language changes.
|
||||||
|
|
||||||
|
Each line is of the form:
|
||||||
|
|
||||||
|
FeatureName = "_Feature(" OptionalRelease "," MandatoryRelease ","
|
||||||
|
CompilerFlag ")"
|
||||||
|
|
||||||
|
where, normally, OptionalRelease < MandatoryRelease, and both are 5-tuples
|
||||||
|
of the same form as sys.version_info:
|
||||||
|
|
||||||
|
(PY_MAJOR_VERSION, # the 2 in 2.1.0a3; an int
|
||||||
|
PY_MINOR_VERSION, # the 1; an int
|
||||||
|
PY_MICRO_VERSION, # the 0; an int
|
||||||
|
PY_RELEASE_LEVEL, # "alpha", "beta", "candidate" or "final"; string
|
||||||
|
PY_RELEASE_SERIAL # the 3; an int
|
||||||
|
)
|
||||||
|
|
||||||
|
OptionalRelease records the first release in which
|
||||||
|
|
||||||
|
from __future__ import FeatureName
|
||||||
|
|
||||||
|
was accepted.
|
||||||
|
|
||||||
|
In the case of MandatoryReleases that have not yet occurred,
|
||||||
|
MandatoryRelease predicts the release in which the feature will become part
|
||||||
|
of the language.
|
||||||
|
|
||||||
|
Else MandatoryRelease records when the feature became part of the language;
|
||||||
|
in releases at or after that, modules no longer need
|
||||||
|
|
||||||
|
from __future__ import FeatureName
|
||||||
|
|
||||||
|
to use the feature in question, but may continue to use such imports.
|
||||||
|
|
||||||
|
MandatoryRelease may also be None, meaning that a planned feature got
|
||||||
|
dropped.
|
||||||
|
|
||||||
|
Instances of class _Feature have two corresponding methods,
|
||||||
|
.getOptionalRelease() and .getMandatoryRelease().
|
||||||
|
|
||||||
|
CompilerFlag is the (bitfield) flag that should be passed in the fourth
|
||||||
|
argument to the builtin function compile() to enable the feature in
|
||||||
|
dynamically compiled code. This flag is stored in the .compiler_flag
|
||||||
|
attribute on _Future instances. These values must match the appropriate
|
||||||
|
#defines of CO_xxx flags in Include/compile.h.
|
||||||
|
|
||||||
|
No feature line is ever to be deleted from this file.
|
||||||
|
"""
|
||||||
|
|
||||||
|
all_feature_names = [
|
||||||
|
"nested_scopes",
|
||||||
|
"generators",
|
||||||
|
"division",
|
||||||
|
"absolute_import",
|
||||||
|
"with_statement",
|
||||||
|
"print_function",
|
||||||
|
"unicode_literals",
|
||||||
|
"barry_as_FLUFL",
|
||||||
|
"generator_stop",
|
||||||
|
"annotations",
|
||||||
|
]
|
||||||
|
|
||||||
|
__all__ = ["all_feature_names"] + all_feature_names
|
||||||
|
|
||||||
|
# The CO_xxx symbols are defined here under the same names defined in
|
||||||
|
# code.h and used by compile.h, so that an editor search will find them here.
|
||||||
|
# However, they're not exported in __all__, because they don't really belong to
|
||||||
|
# this module.
|
||||||
|
CO_NESTED = 0x0010 # nested_scopes
|
||||||
|
CO_GENERATOR_ALLOWED = 0 # generators (obsolete, was 0x1000)
|
||||||
|
CO_FUTURE_DIVISION = 0x20000 # division
|
||||||
|
CO_FUTURE_ABSOLUTE_IMPORT = 0x40000 # perform absolute imports by default
|
||||||
|
CO_FUTURE_WITH_STATEMENT = 0x80000 # with statement
|
||||||
|
CO_FUTURE_PRINT_FUNCTION = 0x100000 # print function
|
||||||
|
CO_FUTURE_UNICODE_LITERALS = 0x200000 # unicode string literals
|
||||||
|
CO_FUTURE_BARRY_AS_BDFL = 0x400000
|
||||||
|
CO_FUTURE_GENERATOR_STOP = 0x800000 # StopIteration becomes RuntimeError in generators
|
||||||
|
CO_FUTURE_ANNOTATIONS = 0x1000000 # annotations become strings at runtime
|
||||||
|
|
||||||
|
|
||||||
|
class _Feature:
|
||||||
|
|
||||||
|
def __init__(self, optionalRelease, mandatoryRelease, compiler_flag):
|
||||||
|
self.optional = optionalRelease
|
||||||
|
self.mandatory = mandatoryRelease
|
||||||
|
self.compiler_flag = compiler_flag
|
||||||
|
|
||||||
|
def getOptionalRelease(self):
|
||||||
|
"""Return first release in which this feature was recognized.
|
||||||
|
|
||||||
|
This is a 5-tuple, of the same form as sys.version_info.
|
||||||
|
"""
|
||||||
|
return self.optional
|
||||||
|
|
||||||
|
def getMandatoryRelease(self):
|
||||||
|
"""Return release in which this feature will become mandatory.
|
||||||
|
|
||||||
|
This is a 5-tuple, of the same form as sys.version_info, or, if
|
||||||
|
the feature was dropped, is None.
|
||||||
|
"""
|
||||||
|
return self.mandatory
|
||||||
|
|
||||||
|
def __repr__(self):
|
||||||
|
return "_Feature" + repr((self.optional,
|
||||||
|
self.mandatory,
|
||||||
|
self.compiler_flag))
|
||||||
|
|
||||||
|
|
||||||
|
nested_scopes = _Feature((2, 1, 0, "beta", 1),
|
||||||
|
(2, 2, 0, "alpha", 0),
|
||||||
|
CO_NESTED)
|
||||||
|
|
||||||
|
generators = _Feature((2, 2, 0, "alpha", 1),
|
||||||
|
(2, 3, 0, "final", 0),
|
||||||
|
CO_GENERATOR_ALLOWED)
|
||||||
|
|
||||||
|
division = _Feature((2, 2, 0, "alpha", 2),
|
||||||
|
(3, 0, 0, "alpha", 0),
|
||||||
|
CO_FUTURE_DIVISION)
|
||||||
|
|
||||||
|
absolute_import = _Feature((2, 5, 0, "alpha", 1),
|
||||||
|
(3, 0, 0, "alpha", 0),
|
||||||
|
CO_FUTURE_ABSOLUTE_IMPORT)
|
||||||
|
|
||||||
|
with_statement = _Feature((2, 5, 0, "alpha", 1),
|
||||||
|
(2, 6, 0, "alpha", 0),
|
||||||
|
CO_FUTURE_WITH_STATEMENT)
|
||||||
|
|
||||||
|
print_function = _Feature((2, 6, 0, "alpha", 2),
|
||||||
|
(3, 0, 0, "alpha", 0),
|
||||||
|
CO_FUTURE_PRINT_FUNCTION)
|
||||||
|
|
||||||
|
unicode_literals = _Feature((2, 6, 0, "alpha", 2),
|
||||||
|
(3, 0, 0, "alpha", 0),
|
||||||
|
CO_FUTURE_UNICODE_LITERALS)
|
||||||
|
|
||||||
|
barry_as_FLUFL = _Feature((3, 1, 0, "alpha", 2),
|
||||||
|
(4, 0, 0, "alpha", 0),
|
||||||
|
CO_FUTURE_BARRY_AS_BDFL)
|
||||||
|
|
||||||
|
generator_stop = _Feature((3, 5, 0, "beta", 1),
|
||||||
|
(3, 7, 0, "alpha", 0),
|
||||||
|
CO_FUTURE_GENERATOR_STOP)
|
||||||
|
|
||||||
|
annotations = _Feature((3, 7, 0, "beta", 1),
|
||||||
|
(3, 10, 0, "alpha", 0),
|
||||||
|
CO_FUTURE_ANNOTATIONS)
|
|
@ -0,0 +1 @@
|
||||||
|
# This file exists as a helper for the test.test_frozen module.
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue