-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MINIFICPP-2462 - Divide libminifi #1902
base: main
Are you sure you want to change the base?
Changes from all commits
3caf117
3a3585e
53c2983
ca5bf2b
5e526de
c6d8f0c
2656f32
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
file(GLOB SOURCES | ||
src/*.cpp | ||
src/core/*.cpp | ||
src/controllers/keyvalue/*.cpp | ||
src/controllers/*.cpp | ||
src/io/*.cpp | ||
src/serialization/*.cpp | ||
src/utils/file/*.cpp | ||
src/utils/net/*.cpp | ||
src/utils/tls/*.cpp | ||
src/utils/*.cpp) | ||
add_minifi_library(minifi-extension-utils STATIC ${SOURCES}) | ||
target_include_directories(minifi-extension-utils PUBLIC include) | ||
target_link_libraries(minifi-extension-utils PUBLIC minifi-core) | ||
|
||
include(RangeV3) | ||
include(Asio) | ||
include(MagicEnum) | ||
list(APPEND CORE_LIBRARIES ZLIB::ZLIB concurrentqueue RapidJSON spdlog Threads::Threads gsl-lite range-v3 expected-lite asio magic_enum OpenSSL::Crypto OpenSSL::SSL CURL::libcurl RapidJSON) | ||
if(NOT WIN32) | ||
list(APPEND CORE_LIBRARIES OSSP::libuuid++) | ||
endif() | ||
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9) | ||
list(APPEND CORE_LIBRARIES stdc++fs) | ||
endif() | ||
target_link_libraries(minifi-extension-utils PUBLIC ${CMAKE_DL_LIBS} ${CORE_LIBRARIES}) | ||
if (APPLE) | ||
target_link_libraries(minifi-extension-utils PUBLIC "-framework CoreFoundation -framework SystemConfiguration") | ||
endif() | ||
if (UNIX AND (CMAKE_SYSTEM_PROCESSOR MATCHES "armv7")) | ||
target_link_libraries(minifi-extension-utils PUBLIC "-latomic") | ||
endif() | ||
|
||
target_link_libraries(minifi-extension-utils PRIVATE minifi-core) | ||
target_link_libraries(minifi-extension-utils PUBLIC minifi-utils) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/** | ||
* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The ASF licenses this file to You under the Apache License, Version 2.0 | ||
* (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include "minifi-cpp/FlowFileRecord.h" | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/** | ||
* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The ASF licenses this file to You under the Apache License, Version 2.0 | ||
* (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include "minifi-cpp/ResourceClaim.h" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we replace the #include "ResourceClaim.h" with #include "minifi-cpp/ResourceClaim.h" where it is used and remove this file? |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/** | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The ASF licenses this file to You under the Apache License, Version 2.0 | ||
* (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
#pragma once | ||
|
||
#include "minifi-cpp/controllers/RecordSetReader.h" | ||
#include "core/controller/ControllerService.h" | ||
|
||
|
||
namespace org::apache::nifi::minifi::core { | ||
|
||
class RecordSetReaderImpl : public virtual controller::ControllerServiceImpl, public virtual RecordSetReader { | ||
public: | ||
using ControllerServiceImpl::ControllerServiceImpl; | ||
}; | ||
|
||
} // namespace org::apache::nifi::minifi::core |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/** | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The ASF licenses this file to You under the Apache License, Version 2.0 | ||
* (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
#pragma once | ||
|
||
#include "minifi-cpp/controllers/RecordSetWriter.h" | ||
#include "core/controller/ControllerService.h" | ||
|
||
namespace org::apache::nifi::minifi::core { | ||
|
||
class RecordSetWriterImpl : public virtual controller::ControllerServiceImpl, public virtual RecordSetWriter { | ||
public: | ||
using ControllerServiceImpl::ControllerServiceImpl; | ||
}; | ||
|
||
} // namespace org::apache::nifi::minifi::core |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/** | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The ASF licenses this file to You under the Apache License, Version 2.0 | ||
* (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
#pragma once | ||
|
||
#include "minifi-cpp/controllers/SSLContextService.h" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can the #include "controllers/SSLContextService.h" includes be replaced with #include "minifi-cpp/controllers/SSLContextService.h" and this file removed? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we replace the #include "FlowFileRecord.h" with #include "minifi-cpp/FlowFileRecord.h" in all files and remove this file?