Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • G goocanvas
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 24
    • Issues 24
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 6
    • Merge requests 6
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • goocanvas
  • Merge requests
  • !13

goocanvas-3.0: Prepare sources for building with Visual Studio

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Chun-wei Fan requested to merge prep-msvc-3.0 into goocanvas-3.0 Jun 12, 2021
  • Overview 0
  • Commits 4
  • Pipelines 6
  • Changes 20

Hi,

This MR attempts to prepare the headers (and thus the code) to be usable for building and usage with Visual Studio compilers, by:

  • Adding a header, goocanvasexports.h, that defines macros to be used to mark APIs and public variables that should be exported (and to be imported properly, in the cases of public variables). The public headers, as well as goocanvasatk.h (since the items there need to be introspected) have been updated accordingly.

  • Make sure that goocanvasatk,c includes goocanvasatk.h, so that things in there do indeed get exported on Visual Studio-style builds.

  • Update how goocanvasenumtypes.h is generated, so that the prototypes there are also marked with the macros we added in goocanvasexports.h.

This does not attempt to add a build system for Visual Studio-like builds, since any needed updates for that should go into the new Meson port that is being under work.

With blessings, thank you!

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: prep-msvc-3.0