function libraryCompiler(varargin)

%LIBRARYCOMPILER Library Compiler app
%
%    This function will start the Library Compiler. You can create, build
%    and package library deployment projects using the Library Compiler app.
%
%    USAGE:
%    libraryCompiler will start the app with an empty Library
%    Compiler project.
%
%    libraryCompiler projectname will open an existing project in the
%    app. If the project does not exist, an error will be generated and the
%    program will exit.
%
%    See also applicationCompiler, deploytool, hadoopCompiler, mcc, mbuild, productionServerCompiler, webAppCompiler

% Copyright 2013-2016 MathWorks, Inc.

narginchk(0,2)

% Verify Compiler license
status = license('checkout','Compiler');
if ~status
    error(message('Compiler:deploytool:license_checkout_error'))
end

compiler.internal.launchui(mfilename,varargin{:})
