Skip to content
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

backend: change backend dir #303

Merged
merged 1 commit into from
Mar 6, 2018
Merged

backend: change backend dir #303

merged 1 commit into from
Mar 6, 2018

Conversation

JonasVautherin
Copy link
Collaborator

  • backend is now in /backend instead of /grpc/server
  • update readme
  • change BUILD_DRONECORESERVER to BUILD_BACKEND in Makefile

Copy link
Contributor

@shakthi-prashanth-m shakthi-prashanth-m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Leave a comment

The backend is built as an executable:

```
./build/default/backend/src/backend_bin
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure you're placing backend executable in src ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that's where dronecore_server originally was. But now that you say it, maybe this is the occasion to build backend_bin, libbackend.* and backend_unit_tests in ./build/default/backend/bin? What do you think?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure the reason behind having it in src. As you know, for DroneCore unit tests, we've in build/default/unit_tests_runner. I think ./build/default/backend/bin is also fine.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right. I can put them in build/default, of course.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, I am not sure what a good practice would be for that (and also maybe install should be set for the backend). I don't have much time for this right now, I just wanted to move grpc/server to backend now that not so many people are working on it.

Maybe changing the build output/install targets can be done later?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah its perfectly fine.

@@ -45,7 +45,7 @@ target_include_directories(backend
PRIVATE
${CMAKE_SOURCE_DIR}/core
${CMAKE_SOURCE_DIR}/plugins
${CMAKE_BINARY_DIR}/grpc/server/src
${CMAKE_BINARY_DIR}/backend/src
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just noticed. Are you sure you're placing backend executable in src ?

Copy link
Collaborator

@julianoes julianoes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense.

@JonasVautherin JonasVautherin force-pushed the rename-backend-dir branch 2 times, most recently from 584d87f to 1df884f Compare March 6, 2018 11:52
* backend is now in /backend instead of /grpc/server
* update readme
* change BUILD_DRONECORESERVER to BUILD_BACKEND in Makefile
@JonasVautherin JonasVautherin merged commit 4d9381c into develop Mar 6, 2018
@JonasVautherin JonasVautherin deleted the rename-backend-dir branch March 6, 2018 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants