Giter Club home page Giter Club logo

vclinux's Introduction

vclinux

Unofficial scripts and stuff related to the Visual C++ for Linux Development extension.

Yes I'm the program manger for that but this is stuff I've made on the side. Think about it. If this was good enough to ship it'd be in the box right?

I hope you find this useful, especially for modifying to fit for your needs. If you have any comments or suggestions I'd love to hear them.

Project generation bash scripts

genvcxproj.sh

This script generates a VC Linux project file that includes your source files from the directory specified. The project type is makefile and it is set to not copy sources since the assumption here is the files have been mapped to a Windows drive.

This leaves your source in a flat list. To organize your files as seen in your directory use genfilters.sh to generate an accompanying filter file.

The assumption this script has is that your source code is on a Linux machine and that this directory has been mapped to Windows so the code can be edited in Visual Studio.

Input for this script is:

  1. is the directory of source code to create a project file for
  2. is file name to create, should be projectname.vcxproj

Example usage:

$ ./genvcxproj.sh ~/repos/preciouscode/ preciouscode.vcxproj

Once you have your project open in Visual Studio connect to your Linux machine using the extension, as shown here. Now add any paths needed for your includes to light up intellisense, and setup your remote build command line on the property page. This is specific to your project but would be something like:

cd ~/repos/preciouscode/; make

As you can see multiple commands can be used ; seperated.

genfilters.sh

This script generates a filter file for organizing source files in a VC Linux project based on the directory structure. The filter file must be the same name as your project file + .filters. So if your project file is preciouscode.vcxproj your filter file needs to be named preciouscode.vcxproj.filters.

The assumption this script has is that your source code is on a Linux machine and that this directory has been mapped to Windows so the code can be edited in Visual Studio.

To generate a project file for your source code see genvcxproj.sh

  1. is the directory of source code to create project filters from
  2. is file name to create, should be projectname.vcxproj.filters

Example usage:

$ ./genfilters.sh ~/repos/preciouscode/ preciouscode.vcxproj.filters

vclinux's People

Contributors

robotdad avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.